|
|
|
|
|
|
var res = ReflectionResolution(camera, LightweightRenderPipeline.asset.renderScale); |
|
|
|
if (m_ReflectionTexture == null) |
|
|
|
{ |
|
|
|
bool useHDR10 = SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.RGB111110Float); |
|
|
|
RenderTextureFormat hdrFormat = |
|
|
|
useHDR10 ? RenderTextureFormat.RGB111110Float : RenderTextureFormat.DefaultHDR; |
|
|
|
GraphicsFormatUtility.GetGraphicsFormat(RenderTextureFormat.RGB111110Float, true)); |
|
|
|
GraphicsFormatUtility.GetGraphicsFormat(hdrFormat, true)); |
|
|
|
} |
|
|
|
|
|
|
|
m_ReflectionCamera.targetTexture = m_ReflectionTexture; |
|
|
|