Skip to content

Commit

Permalink
Fixed a shader compilation error on PS4 with 2019.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Chman committed Oct 21, 2019
1 parent 048c469 commit 4905911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4905911

Please sign in to comment.