Search Issue Tracker
Fixed in 9.0.0-preview.29
Votes
0
Found in [Package]
2017.4
2019.2.3f1
2020.1
Issue ID
1209255
Regression
No
Unrealistic reflections are rendered when using an orthographic camera
Steps to reproduce:
1. Download and open attached "PBRShadingCameraOrtho" project
2. Press "Play"
3. Observe the left capsule in the Game view
Expected result: The left capsule in the Game view does not change its appearance when the camera is moved
Actual result: The left capsule in the Game view keeps changing its appearance, according to the camera position
Reproducible with: 2017.4.36f1, 2018.4.15f1, 2019.2.18f1, 2019.3.0f4, 2020.1.0a18
Note: Reproducible with URP, LWRP, and built-in RP reflective shaders, not reproducible with HDRP shaders and non-reflective URP, LWRP and built-in RP shaders
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
- “[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
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
ctmctm5
Oct 27, 2020 20:51
This happens because in the frag function in Internal-DeferredReflections.shader eyeVec is calculated as normalize(worldPos-_WorldSpaceCameraPos).
This calculation is correct for a perspective camera but not for an orthographic camera. You'd need to replace _WorldSpaceCameraPos with the ray's origin point on the camera.