aardgoose преди 6 години
родител
ревизия
65afd69ea4
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      examples/webgl_buffergeometry_custom_attributes_particles.html

+ 3 - 3
examples/webgl_buffergeometry_custom_attributes_particles.html

@@ -32,7 +32,7 @@
 
 		<script type="x-shader/x-fragment" id="fragmentshader">
 
-			uniform sampler2D texture;
+			uniform sampler2D pointTexture;
 
 			varying vec3 vColor;
 
@@ -40,7 +40,7 @@
 
 				gl_FragColor = vec4( vColor, 1.0 );
 
-				gl_FragColor = gl_FragColor * texture2D( texture, gl_PointCoord );
+				gl_FragColor = gl_FragColor * texture2D( pointTexture, gl_PointCoord );
 
 			}
 
@@ -80,7 +80,7 @@
 
 				uniforms = {
 
-					texture: { value: new TextureLoader().load( "textures/sprites/spark1.png" ) }
+					pointTexture: { value: new TextureLoader().load( "textures/sprites/spark1.png" ) }
 
 				};