Browse Source

3D Texture example Minor Clean up

Takahiro 6 years ago
parent
commit
93d8febaa4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl_materials_texture_3d.html

+ 2 - 2
examples/webgl_materials_texture_3d.html

@@ -23,7 +23,7 @@
 				text-align:center;
 				text-align:center;
 			}
 			}
 
 
-			a {
+			#info a {
 				color: #ffffff;
 				color: #ffffff;
 			}
 			}
 		</style>
 		</style>
@@ -64,7 +64,7 @@
 
 
 		vec4 color = texture( diffuse, vUv );
 		vec4 color = texture( diffuse, vUv );
 		color.r *= 1.5; // lighten a bit
 		color.r *= 1.5; // lighten a bit
-		color.gba = vec3( color.x );
+		color.gb = vec2( color.r );
 
 
 		out_FragColor = vec4( color.rgb, 1.0 );
 		out_FragColor = vec4( color.rgb, 1.0 );