Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X

Votes

2

Found in

2021.3.40f1

2022.3.38f1

6000.0.11f1

7000.0.0a1

Issue ID

UUM-75771

Regression

No

Shader error in 'Shader Graphs/Shadows': redefinition of '_ShadowMapTexture' occurs when building the project for the first time with a custom shadows Shader Graph using the Built-In Active Target

--

-

How to reproduce:
1. Open the “BIRPShadowsBuildError“ project
2. Open the “Sample Scene”
3. Build And Run the project
4. Observe the Console

Expected result: Build is successful
Actual result: Build fails and “Shader error in 'Shader Graphs/Shadows': redefinition of '_ShadowMapTexture' at Assets/Shadows.hlsl(5) (on d3d11)“ error is thrown

Reproducible in: 2021.3.40f1, 2022.3.38f1, 6000.0.11f1

Reproducible on: Windows 10, macOS 14.5 (user’s)
Not reproducible on: No other environments tested

Notes: After the first Build fails, Build and Run again - the subsequent attempt compiles successfully

Comments (1)

  1. MetallCore999

    Aug 12, 2024 09:47

    Same problem in current version 6000.0.14f. I use Built-In rendering with custom lighting shader. It's sad that about half of all my particles shaders are used _ShadowMapTexture, and I can't build the project

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.