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
- Physics SyncColliders 3x-7x performance regression from 2022LTS to U6
- ListView's '+' button causes a recursively dispatching event when the visual element area is filled up
- Soft keyboard closes immediately after multiple touches are made if Pointer Behavior is set to SingleUnifiedPointer
- UI Image batching breaks when interleaving elements with mixed z-positions and materials
- KeyNotFoundException is thrown when retrieving some values from HyperLinkClickedEventArgs
Add comment