Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Three.js is a JavaScript 3D Library which makes use of WebGL
2
votes
0
answers
543
views
THREE.ShaderMaterial cannot perform antialiasing
I created a ShaderMaterial to draw a box in three.js using the following key code:
//magnetic orientation
let magnetMaterial = new THREE.ShaderMaterial({
uniforms: { orientation: { value: new THREE.Vector3 …
0
votes
Shade a box different colors for two ends with one material in Three.js
Last week, I moved the code about determining color from the vertex fragment to the fragment shader, it worked. That is to say,
Fragment Shader
varying vec3 v_pos;
void main( void ) {
gl_FragColo …
0
votes
1
answer
619
views
Shade a box different colors for two ends with one material in Three.js
But I failed to use ShaderMaterial with the GLSL code to render a BoxGeometry I created in three.js. … DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name="description" content="WebGL Shader in Three.js">
<title>Shader</title>
<meta name='viewport' content='width=device-width, initial-scale=1 …