Skip to content

Instantly share code, notes, and snippets.

View michaelperros's full-sized avatar
🤠

Michael Perros michaelperros

🤠
View GitHub Profile
const WaveShaderMaterial = shaderMaterial(
// uniforms
{ uTime: 0, uTexture: new THREE.Texture() },
// vertex
glsl'
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}