Search Issue Tracker
By Design
Votes
0
Found in
5.4.2f2
Issue ID
851285
Regression
No
Custom Surface Shader (instanced) Not Evaluating SH Probes
Reproduction steps:
1. Open the attached project (lighting problem repro.zip);
2. Open the scene "lighting issues.unity";
3. In the game view, observe lighting difference between the sphere with standard shader and the instanced surface shader;
4. Open the ModelShader.shader script;
5. Comment the 85 line;
6. In the game view, observe that the spheres are lit identically.
Expected results: the custom instanced surface shader will work as the standard.
Actual results: objects are lit differently;
Reproduced on: 5.3.6p8, 5.4.2p4, 5.5.0f2, 5.6.0a3.
Note:
85 line: In this line is evaluated the Surface shader's occlusion:
o.Occlusion = tex2D(_OcclusionMap, IN.uv_MainTex) * _OcclusionStrength;
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment