瀏覽代碼

3D Texture example Minor Clean up

Takahiro 7 年之前
父節點
當前提交
93d8febaa4
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 );