Search Issue Tracker
Won't Fix
Votes
2
Found in
2017.1.0f3
Issue ID
935631
Regression
No
Models using excluded render paths with shader variants disabled in deferred rendering do not render in preview window
Steps to reproduce:
1. Open attached project
2. Select Cube in Project view
3. In Inspector set Shader property to "Custom"->"PreviewBugTest"
-Preview window becomes empty
Problem: Models using excluded render paths with shader variants disabled in deferred rendering do not render in preview window
Actual result: setting "exclude_path:forward exclude_path:prepass" in shader models are not rendered in preview window
Expected result: models should render in preview window
For cube to be rendered again, just comment out "exclude_path:forward exclude_path:prepass" part in shader on 16 line
Reproduced on: 5.6.2f1, 2017.1.0f3, 2017.1.0p1, 2017.2.0b3, 2017.3.0a1
UPDATE: Shader stripping feature is now available: https://blogs.unity3d.com/2018/05/14/stripping-scriptable-shader-variants/
Comments (1)
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Ziflin
Jul 27, 2018 16:04
We just ran into this issue as well. We're
A simple vert-color only shader compiles to 1116 lines with Forward rendering enabled, vs. only 524 lines with "exclude_path:forward".
So basically we're having to compile quite a bit more *just* to see the preview. Pretty annoying.