Sha256: f392ef98f94c49d1a6e788f04f7ba6368f105d5224c779d9fdcc1c685715c230
Contents?: true
Size: 512 Bytes
Versions: 17
Compression:
Stored size: 512 Bytes
Contents
uniform float amplitude; attribute float displacement; varying vec3 vNormal; void main() { vNormal = normal; // multiply our displacement by the // amplitude. The amp will get animated // so we'll have animated displacement vec3 newPosition = position + normal * vec3(displacement * amplitude); gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition,1.0); }
Version data entries
17 entries across 17 versions & 1 rubygems