Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2020.3.X, 2021.2.X
Votes
2
Found in
2019.4
2019.4.14f1
2020.3
2021.1
2021.2
2022.1
Issue ID
1358042
Regression
No
Shader compilation error is thrown when #pragma target is set to 3.0 or higher
How to reproduce:
1. Open the attached project "1358042.zip"
2. Select the "TestShader" Shader in the Assets folder
3. In the Inspector press on the Open in Shader Editor button
4. In Rendering Options, turn off LOD Group Cross Fade Option
5. Turn the LOD Group Cross Fade Option on again
6. Save the settings
7. Open the Console
Expected reesult: Warning is not thrown when #pragma target 3.0 is already set in code
Actual result: Even though the target is set to 3.0 or higher the warning is thrown
Reproducible with: 2019.4.29f1, 2020.3.17f1, 2021.1.18f1, 2021.2.0b9, 2022.1.0a5
Note:
* 2021.2 and 2022.1 streams show the error in the Inspector when selecting the shader
* Warning thrown: "Automatically setting target of LOD_FADE_CROSSFADE to 3.0"
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
- SerializedPropertyChangeEvent is invoked when initially binding PropertyFields in custom Editor
- UI Panel is not visible when HDR and STP filter are enabled
- Crash on GfxDeviceD3D11Base::DrawBuffersIndirect when opening a specific project
- OnTriggerExit2D is called in Play mode when undoing component adding
- Builds fail with "Execution failed for task ':launcher:checkReleaseDuplicateClasses'" error when the newer version of the In-App Purchasing package is installed on a specific project
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b1
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.9f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.27f1