Browse Source

Minor shader clean up Texture 3D example

Takahiro 6 years ago
parent
commit
5f43c40898
1 changed files with 2 additions and 3 deletions
  1. 2 3
      examples/webgl_materials_texture_3d.html

+ 2 - 3
examples/webgl_materials_texture_3d.html

@@ -63,10 +63,9 @@
 	void main() {
 	void main() {
 
 
 		vec4 color = texture( diffuse, vUv );
 		vec4 color = texture( diffuse, vUv );
-		color.r *= 1.5; // lighten a bit
-		color.gb = vec2( color.r );
 
 
-		out_FragColor = vec4( color.rgb, 1.0 );
+		// lighten a bit
+		out_FragColor = vec4( color.rrr * 1.5, 1.0 );
 
 
 	}
 	}
 	</script>
 	</script>