Skip to content

Instantly share code, notes, and snippets.

@benaadams
Created May 21, 2015 14:44
Show Gist options
  • Save benaadams/6804d29753ff58f6f4f8 to your computer and use it in GitHub Desktop.
Save benaadams/6804d29753ff58f6f4f8 to your computer and use it in GitHub Desktop.
var material = new THREE.RawShaderMaterial( {
uniforms: {
texDiffuse: diffTexture,
texNormal: normalTexture,
texSpecular: specTexture,
tick: tickUniform
},
vertexShader: VertexShaderTextString,
fragmentShader: FragmentShaderTextString,
depthTest: true,
depthWrite: true
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment