From 2202f0a66cc6f10e3fd7f100590958003a188e29 Mon Sep 17 00:00:00 2001 From: alteredq Date: Wed, 6 Jul 2011 23:36:36 +0200 Subject: [PATCH] Fixed broken custom attributes demo. Attributes were not in fact updated before. --- examples/webgl_custom_attributes.html | 92 +++++++++++++++------------ 1 file changed, 52 insertions(+), 40 deletions(-) diff --git a/examples/webgl_custom_attributes.html b/examples/webgl_custom_attributes.html index b8e0407916..fab045661f 100644 --- a/examples/webgl_custom_attributes.html +++ b/examples/webgl_custom_attributes.html @@ -22,7 +22,7 @@ padding: 5px; z-index:100; } - + @@ -44,10 +44,10 @@ varying vec3 vNormal; varying vec2 vUv; - + void main() { - vNormal = normal; + vNormal = normal; vUv = ( 0.5 + amplitude ) * uv + vec2( amplitude ); vec3 newPosition = position + amplitude * normal * vec3( displacement ); @@ -56,12 +56,12 @@ } - + - - + +