Skip to content

Instantly share code, notes, and snippets.

@OliverUv
Created April 26, 2013 23:23
Show Gist options
  • Select an option

  • Save OliverUv/5471079 to your computer and use it in GitHub Desktop.

Select an option

Save OliverUv/5471079 to your computer and use it in GitHub Desktop.
var customShader = new THREE.ShaderMaterial({
vertexShader: [
'void main() {',
' gl_Position = projectionMatrix *',
' modelViewMatrix *',
' vec4(position,1.0);',
'}'
].join('\n'),
fragmentShader: [
'void main() {',
' gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);',
'}'
].join('\n')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment