Skip to content

Instantly share code, notes, and snippets.

@caioketo
Created September 13, 2013 18:37
Show Gist options
  • Save caioketo/6554400 to your computer and use it in GitHub Desktop.
Save caioketo/6554400 to your computer and use it in GitHub Desktop.
setting unifroms
new THREE.MeshShaderMaterial({
uniforms: {
sky_texture: { type: 't', value: 0, texture: textures.sky },
hidden: this.hidden,
time: window.map.time_uniform,
},
attributes: {
heightmap: { type: 'f', value: [] }
},
vertexShader: document.getElementById( 'waterVertexShader' ).textContent,
fragmentShader: document.getElementById( 'waterFragmentShader' ).textContent,
transparent: true
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment