浏览代码

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