From 4905911fda14ab3554e39b7665d071a43f52079b Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 21 Oct 2019 13:47:08 +0200 Subject: [PATCH] Fixed a shader compilation error on PS4 with 2019.3 --- CHANGELOG.md | 5 +++++ PostProcessing/Shaders/Builtins/ScreenSpaceReflections.hlsl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 374ca8da..a8ca9f80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [2.1.9] - 2019-XX-XX + +### Fixed +- Shader compilation error on PS4 with Unity 2019.3. + ## [2.1.8] - 2019-10-11 ### Added diff --git a/PostProcessing/Shaders/Builtins/ScreenSpaceReflections.hlsl b/PostProcessing/Shaders/Builtins/ScreenSpaceReflections.hlsl index 58bc4bdd..90a967c4 100644 --- a/PostProcessing/Shaders/Builtins/ScreenSpaceReflections.hlsl +++ b/PostProcessing/Shaders/Builtins/ScreenSpaceReflections.hlsl @@ -359,7 +359,7 @@ float4 FragComposite(VaryingsDefault i) : SV_Target float4 gbuffer1 = _CameraGBufferTexture1.Load(int3(i.vertex.xy, 0)); float4 gbuffer2 = _CameraGBufferTexture2.Load(int3(i.vertex.xy, 0)); - float oneMinusReflectivity = 0.0; + half oneMinusReflectivity = 0.0; EnergyConservationBetweenDiffuseAndSpecular(gbuffer0.rgb, gbuffer1.rgb, oneMinusReflectivity); float3 normal = 2.0 * gbuffer2.rgb - 1.0;