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
- The “+” button to create Labels is not deactivated when no labels can be created due to no Categories existing and does nothing when pressed
- The UIElements "GeometryChangedEvent" is not invoked when modifying "VisualElement.style.translate"
- Prefab Variant does not get updated when changes are made on "OnValidate" method
- “Save Changes Failed - Index was out of range” error popup appears when discarding changes in the Sprite Library Editor
- “Local” foldout’s name and the foldout’s ‘triangle’ button are not aligned when a Category is created in the Sprite Library Editor
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