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,
|
||||||
@@ -114,5 +115,7 @@ fragment {
|
|||||||
|
|
||||||
material.baseColor = color;
|
material.baseColor = color;
|
||||||
|
|
||||||
|
gl_FragDepth = 0.001f;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user