瀏覽代碼

Merge pull request #1464 from sebavan/HighlightLayerExcludeList

Fix Grid
David Catuhe 8 年之前
父節點
當前提交
1f11967b70

File diff suppressed because it is too large
+ 1 - 1
materialsLibrary/dist/babylon.gridMaterial.js


File diff suppressed because it is too large
+ 1 - 1
materialsLibrary/dist/babylon.gridMaterial.min.js


+ 1 - 1
materialsLibrary/materials/grid/grid.fragment.fx

@@ -91,7 +91,7 @@ void main(void) {
 #endif
 
 #ifdef TRANSPARENT
-    float opacity = clamp(grid, 0.08, color.w);
+    float opacity = clamp(grid, 0.08, gridControl.w);
     gl_FragColor = vec4(color.rgb, opacity);
 #else
     // Apply the color.