unity-renderer icon indicating copy to clipboard operation
unity-renderer copied to clipboard

[Unity 2021] Transparency not working on WebGL

Open Kinerius opened this issue 2 years ago • 5 comments

Check branch feat/unity-2021 The problem was found here #2602

Transparencies rendering issue [Happens only in build] This can be seen in Genesis Plaza's waterfall pipe that takes to the main hall, as well as in some user's wearables:

image.png image.png image.png

It seems the alpha cutoff is not working correctly, there is no error in the shader while building.

Kinerius avatar Jul 25 '22 14:07 Kinerius

Cloned feat/unity-2021 and created branch https://github.com/decentraland/unity-renderer/tree/feat/unity-2021-shadersCompatibility.

Checking shaders and will modify accordingly to make them compatible with WebGL.

MichaelBitsakis avatar Sep 12 '22 10:09 MichaelBitsakis

Progress :

Created a modified --> DCL/Universal Render Pipeline/LitMod shader and fixed Alpha Cutoff .

MichaelBitsakis avatar Sep 12 '22 11:09 MichaelBitsakis

Fixed Alpha Clip Fixed_Alpha_Clip.jpg

MichaelBitsakis avatar Sep 19 '22 11:09 MichaelBitsakis

Transparency is fixed , we came up to a unity bug , not setting up the _ALPHATEST_ON on the material during the version upgrade , once we use a 2021 material with the shader it works fine.

MichaelBitsakis avatar Sep 21 '22 10:09 MichaelBitsakis

Cleaned up testing area and documented / cleaned up Lit shader.

MichaelBitsakis avatar Sep 22 '22 09:09 MichaelBitsakis

@AjimenezDCL what is the status?

xavi-dcl avatar Nov 14 '22 18:11 xavi-dcl