Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 2017.2.X
Votes
0
Found in
5.6.0f1
Issue ID
893229
Regression
Yes
Surface Shader does not display correct color if using #ifdef on PARALLAXMAP Preprocessor variable to check if it is defined
How to reproduce:
1. Open the attached "SurfaceShaderStrangeness" project
2. Open "asdf" scene, double click on "Shader_Broken" in Project window to open it
3. Comment #ifdef and #endif lines on 26th and 28th line
4. Notice that the "Plane" has a red color
Expected result: "Plane" should have had a red color, before commenting #ifdef line
Actual result: "Plane" didn't have a red color, until commenting #ifdef and #endif lines in Input struct
Regression introduced in 5.6.0b2
Reproducible with 2017.1.0a3, 5.6.0f2, 5.6.0f1
Not reproducible with 5.6.0b1, 5.5.2p3, 5.4.5f1
Note: Alternatively to a 3rd step on how to reproduce the issue, you can just change "Plane" material shader from Custom/Broken to Custom/NoIfDef (this shader simple removes #ifdef from Input struct)
---
Fixed in 2017.3.0a4
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
Add comment