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
- Missing script error when clicking “script” link in Cave scene’s Water Sample Description
- [VFX Graph] Set Position Shape Gizmo isn't refreshed after shaper switch
- NullReferenceException is thrown when trying to access volumeStack from the HDCamera class
- Visual artifacts appear when using an Orthographic camera with a Reflection Probe
- Not all animation properties are accessible when a prefab with an avatar model contains a nested copy of itself with a renamed GameObject
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