Search Issue Tracker
Fixed in 5.3.0
Votes
0
Found in
5.1.1p3
Issue ID
710863
Regression
No
[ShaderCompiler] Line is not compiled if TAB is used instead of space in #pragma statements
Steps to reproduce:
1. Open the attached project
2. Reimport the DepthWriter shader located in Assets/MappingTest folder to force it to recompile
3. Notice the warning: 'Shader warning in 'Custom/DepthWriter': Both vertex and fragment programs must be present in a CGPROGRAM. Excluding it from compilation. at line 19 (on )'
4. Open the shader code and delete the TAB between '#Pragma' and 'fragment' on line 21 and replace it with space
5. Save the shader. Notice it gets compiled without warnings
6. If you replace space in line 20 or 21 with TAB, it will throw warning again.
Note: In a case like this, where TAB happens to be the same size as space, it would be really hard to figure out what causes the problem.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
- Low FPS in the Game View when the Editor window loses focus
- Memory leak when a domain is reloaded on a Scene that uses HDRP's water simulation resources
Add comment