fix: transparency/depth fixes for grid.mat
This commit is contained in:
@@ -13,9 +13,10 @@ material {
|
|||||||
],
|
],
|
||||||
depthWrite : true,
|
depthWrite : true,
|
||||||
depthCulling : true,
|
depthCulling : true,
|
||||||
doubleSided: false,
|
doubleSided: true,
|
||||||
shadingModel : unlit,
|
shadingModel : unlit,
|
||||||
blending : transparent,
|
blending : transparent,
|
||||||
|
transparency: twoPassesOneSide,
|
||||||
variantFilter : [ dynamicLighting, directionalLighting, shadowReceiver, skinning, ssr, stereo ],
|
variantFilter : [ dynamicLighting, directionalLighting, shadowReceiver, skinning, ssr, stereo ],
|
||||||
culling : none,
|
culling : none,
|
||||||
instanced : false,
|
instanced : false,
|
||||||
@@ -111,8 +112,10 @@ fragment {
|
|||||||
color.rgb = (axes.z < 1e-8) ? color.rgb : AXIS_COLOR_Z;
|
color.rgb = (axes.z < 1e-8) ? color.rgb : AXIS_COLOR_Z;
|
||||||
|
|
||||||
color.a *= fade;
|
color.a *= fade;
|
||||||
|
|
||||||
material.baseColor = color;
|
material.baseColor = color;
|
||||||
|
|
||||||
|
gl_FragDepth = 0.001f;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user