Search Issue Tracker
By Design
Votes
5
Found in
5.2.0b5
Issue ID
716903
Regression
No
[CommandBuffer] CommandBuffer.Blit(Texture2D.blackTexture, BuiltinRenderTextureType.GBuffer3) fails when HDR is enabled
Reproduction steps:
1. Open attached project
2. Open scene "repro"
3. Look at the game view
4. Observe difference between LDR and HDR cameras
5. Warning in the console: CommandBuffer: built-in render texture type 13 not found while executing Unnamed command buffer (Blit destination)
Comments (2)
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
jpfranssen
Feb 02, 2016 13:57
Ok never mind, the code above looked like it worked but unfortunately it did not... :(
jpfranssen
Feb 02, 2016 13:51
Well basically this texture is not created when in HDR mode, as documentation says:
"Note that when the camera is using HDR rendering, then there’s no separate render target being created for Emission+lighting buffer (RT3); instead the render target that the camera will render into (i.e. the one that will be passed to the image effects) is used as RT3."
This seems to produce the correct result...
if(m_camera.hdr)
{
m_cmdb_copyGbuffer.Blit(BuiltinRenderTextureType.CameraTarget, RT3_ID);
}
else
{
m_cmdb_copyGbuffer.Blit(BuiltinRenderTextureType.GBuffer3, RT3_ID);
}