Search Issue Tracker
By Design
By Design in 2021.3.X
Votes
4
Found in
2021.3.30f1
Issue ID
UUM-53117
Regression
No
No skybox when rendering with CustomPassUtils.RenderFromCamera
How to reproduce:
1. Download and open the attached project
2. Open the "StarterAssets/ThirdPersonController/Scenes/Playground.unity" scene
3. Enter Play mode
Expected result: Camera view rendered to a texture looks the same as normal Camera view.
Actual result: Camera view rendered to a texture is missing a skybox.
Reproducible with: 2021.3.30f1 (HDRP 12.1.12), 2022.3.10f1 (HDRP 14.0.8), 2023.1.15f1 (HDRP 15.0.6), 2023.2.0b11 (HDRP 16.0.3), 2023.3.0a7 (HDRP 17.0.0)
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
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
Resolution Note:
We are closing this due to the behavior being by design.
CustomPassUtils.RenderFromCamera only renders objects from a certain view point, this is intended to be used to render objects efficiently from another view in a game (for example for a minimap, FPS foreground layer, etc.). It is not intended to be used as a full render pipeline invocation (and thus why there is no sky pass).
For a full render-pipeline invocation, there are alternative methods, such as using the `Target Texture` output option on a camera. Or, you could still use CustomPassUtils.RenderFromCamera but manually draw a skybox (this is done by using a sphere/cube geometry paired with a shader that projects it to the far plane and computes the skybox color result).
Resolution Note (2021.3.X):
We are closing this due to the behavior being by design.
CustomPassUtils.RenderFromCamera only renders objects from a certain view point, this is intended to be used to render objects efficiently from another view in a game (for example for a minimap, FPS foreground layer, etc.). It is not intended to be used as a full render pipeline invocation (and thus why there is no sky pass).
For a full render-pipeline invocation, there are alternative methods, such as using the `Target Texture` output option on a camera. Or, you could still use CustomPassUtils.RenderFromCamera but manually draw a skybox (this is done by using a sphere/cube geometry paired with a shader that projects it to the far plane and computes the skybox color result).