Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2018.1.X
Votes
0
Found in
2018.1.0a1
2018.1.0b5
Issue ID
1009961
Regression
Yes
Surface Shader compile fails if Input Struct has a field with the same name as a field in Output
To reproduce:
1. Open attached project;
2. Select the Shader "TestSurfaceShader";
3. Notice the compilation error in the Inspector.
Expected result: shader is compiled successfully when input struct has a field with the same name as a field in the output.
Actual result: surface shader compile fails if input struct has a field with the same name as a field in the output, the error is thrown: "redefinition of 'surfInputAlpha'".
Reproduced on versions: 2018.1.0a1, 2018.1.0b10, 2018.2.0a3.
Not reproduced on version: 2017.3.1p3.
Fixed in: 2018.3.0a1, 2018.2.0b5, 2018.1.3f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
Add comment