Explorar o código

Minor shader clean up Texture 3D example

Takahiro %!s(int64=6) %!d(string=hai) anos
pai
achega
5f43c40898
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      examples/webgl_materials_texture_3d.html

+ 2 - 3
examples/webgl_materials_texture_3d.html

@@ -63,10 +63,9 @@
 	void main() {
 
 		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>