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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
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