Skip to content

Commit 24b0637

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.0] Fix shader miscompilation of Shader Graph's Dither node on Metal
1 parent 17d480d commit 24b0637

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Packages/com.unity.shadergraph/Editor/Data/Nodes/Artistic/Filter

Packages/com.unity.shadergraph/Editor/Data/Nodes/Artistic/Filter/DitherNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static string Unity_Dither(
2727
@"
2828
{
2929
$precision2 uv = ScreenPosition.xy * _ScreenParams.xy;
30-
$precision DITHER_THRESHOLDS[16] =
30+
static const $precision DITHER_THRESHOLDS[16] =
3131
{
3232
1.0 / 17.0, 9.0 / 17.0, 3.0 / 17.0, 11.0 / 17.0,
3333
13.0 / 17.0, 5.0 / 17.0, 15.0 / 17.0, 7.0 / 17.0,

0 commit comments

Comments
 (0)