fix: transparency/depth fixes for grid.mat

This commit is contained in:
Nick Fisher
2024-12-17 16:35:38 +08:00
parent 9f9b34f662
commit aabea985bd

View File

@@ -13,9 +13,10 @@ material {
],
depthWrite : true,
depthCulling : true,
doubleSided: false,
doubleSided: true,
shadingModel : unlit,
blending : transparent,
transparency: twoPassesOneSide,
variantFilter : [ dynamicLighting, directionalLighting, shadowReceiver, skinning, ssr, stereo ],
culling : none,
instanced : false,
@@ -111,8 +112,10 @@ fragment {
color.rgb = (axes.z < 1e-8) ? color.rgb : AXIS_COLOR_Z;
color.a *= fade;
material.baseColor = color;
gl_FragDepth = 0.001f;
}
}