-
Sub-task
-
Resolution: Fixed
-
P3
-
internal
-
fx-sandbox:metal branch
-
generic
-
os_x
Several fragment shaders require screen space coordinates of a the input fragment for mathematical calculations.
In HLSL shaders, we use VPOS sematic to access the value.
In GLSL shaders, we compute this value.
In MSL, the [[position]] attribute input to fragment shader contains screen space coordinates at xy.
We need to replace all pixcoord instances with in.position.xy
In HLSL shaders, we use VPOS sematic to access the value.
In GLSL shaders, we compute this value.
In MSL, the [[position]] attribute input to fragment shader contains screen space coordinates at xy.
We need to replace all pixcoord instances with in.position.xy