|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
previousLightsUseLinearIntensity = UnityEngine.Rendering.GraphicsSettings.lightsUseLinearIntensity; |
|
|
|
previousLightsUseCCT = UnityEngine.Rendering.GraphicsSettings.lightsUseCCT; |
|
|
|
previousLightsUseCCT = UnityEngine.Rendering.GraphicsSettings.lightsUseColorTemperature; |
|
|
|
UnityEngine.Rendering.GraphicsSettings.lightsUseCCT = true; |
|
|
|
UnityEngine.Rendering.GraphicsSettings.lightsUseColorTemperature = true; |
|
|
|
|
|
|
|
m_CameraColorBuffer = Shader.PropertyToID("_CameraColorTexture"); |
|
|
|
m_CameraDepthBuffer = Shader.PropertyToID("_CameraDepthTexture"); |
|
|
|
|
|
|
UnityEditor.SupportedRenderingFeatures.active = UnityEditor.SupportedRenderingFeatures.Default; |
|
|
|
#endif
|
|
|
|
UnityEngine.Rendering.GraphicsSettings.lightsUseLinearIntensity = previousLightsUseLinearIntensity; |
|
|
|
UnityEngine.Rendering.GraphicsSettings.lightsUseCCT = previousLightsUseCCT; |
|
|
|
UnityEngine.Rendering.GraphicsSettings.lightsUseColorTemperature = previousLightsUseCCT; |
|
|
|
} |
|
|
|
|
|
|
|
void InitAndClearBuffer(Camera camera, ScriptableRenderContext renderContext) |
|
|
|