Skip to content

Commit df6f5c3

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [2022.3] Fixed Foveated Rendering Shader Graph error on Mac
Port of https://github.cds.internal.unity3d.com/unity/unity/pull/53318 for UUM-76172 Fixed Shader Graph undeclared identifier error around foveated rendering area. Bug: UUM-76172 Port: UUM-84653
1 parent d4d961c commit df6f5c3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPassDecal.hlsl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,7 @@ void Frag(PackedVaryings packedInput,
236236
half3 normalWS = half3(LoadSceneNormals(positionCS.xy));
237237
#endif
238238

239-
float2 positionSS = input.positionCS.xy * _ScreenSize.zw;
240-
241-
#if defined(SUPPORTS_FOVEATED_RENDERING_NON_UNIFORM_RASTER)
242-
UNITY_BRANCH if (_FOVEATED_RENDERING_NON_UNIFORM_RASTER)
243-
{
244-
positionSS = RemapFoveatedRenderingNonUniformToLinearCS(input.positionCS.xy, true) * _ScreenSize.zw;
245-
}
246-
#endif
239+
float2 positionSS = FoveatedRemapNonUniformToLinearCS(input.positionCS.xy) * _ScreenSize.zw;
247240

248241
#ifdef DECAL_PROJECTOR
249242
float3 positionWS = ComputeWorldSpacePosition(positionSS, depth, UNITY_MATRIX_I_VP);

0 commit comments

Comments
 (0)