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
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
Add comment