Search Issue Tracker
By Design
Votes
0
Found in
6000.0.47f1
6000.1.0b15
6000.2.0a9
Issue ID
UUM-103513
Regression
No
Shadows are not present when using unity_SpriteColor and Alpha Clipping in Shader Graph
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Observe that shadows are present in the Game view
4. Open the “/Assets/Sprite-Lit-Transparent.shadergraph“ by double-clicking in the Project window
5. In Graph Inspector, enable Alpha Clipping
6. Press CTRL + S to save
7. Observe the Game view
Expected result: Shadows exist and are not flickering
Actual result: Shadows are not present or appear to be flickering
Reproducible with: 6000.0.47f1, 6000.1.0b15, 6000.2.0a9
Could not test with: 2022.3.61f1 (Shader error in 'Shader Graphs/Master': undeclared identifier 'unity_SpriteColor' at /(336) (on d3d11))
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- Reproducible when unity_SpriteColor * VertexColor is used with Alpha Clipping
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
User's custom function node needs to consider the shadow caster pass when using alpha.
such as:
#if defined(SHADERPASS_SHADOWCASTER)
SpriteColor.w = 1;
#endif