Skip to content Skip to sidebar Skip to footer

Custom Shader - Three.js

I am trying to use a custom shader with Three.js. I tried to do it like the many examples, but it doesn't work. My code is: var vertex = 'void main(){vec4 mvPosition = modelViewMa

Solution 1:

I found the problem: I had to use:

 renderer = new THREE.WebGLRenderer();

instead of :

 renderer = new THREE.CanvasRenderer();

Post a Comment for "Custom Shader - Three.js"