Skip to content

Commit de710d1

Browse files
phi-lirasebastienlagarde
authored andcommitted
fixed GLES2 compilation error (#5341)
* fixed GLES2 compilation error * Added changelog
1 parent 2e398ef commit de710d1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

com.unity.render-pipelines.core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2424
- Fix LookDev minimal window size.
2525
- Fix object rotation at instentiation to keep the one in prefab or used in hierarchy.
2626
- Fixed shader compile errors when trying to use tessellation shaders with PlayStation VR on PS4.
27+
- Fixed shader compile errors about LODDitheringTransition not being supported in GLES2.
2728

2829
## [7.1.1] - 2019-09-05
2930

com.unity.render-pipelines.core/ShaderLibrary/CommonDeprecated.hlsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Function that are in this file shouldn't be use. they are obsolete and could be removed in the future
55
// they are here to keep compatibility with previous version
6-
6+
#if !defined(SHADER_API_GLES)
77
// Please use void LODDitheringTransition(uint2 fadeMaskSeed, float ditherFactor)
88
void LODDitheringTransition(uint3 fadeMaskSeed, float ditherFactor)
99
{
@@ -13,5 +13,6 @@ void LODDitheringTransition(uint3 fadeMaskSeed, float ditherFactor)
1313
p = (ditherFactor >= 0.5) ? p : 1 - p;
1414
clip(ditherFactor - p);
1515
}
16+
#endif
1617

1718
#endif

0 commit comments

Comments
 (0)