فهرست منبع

rename texture uniform

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" ) }
 
 				};