Skip to content

Commit 86ef459

Browse files
authored
Fix shadow shader for Mac (#7138)
Turns out Mac shader does not support the cleaner bracket style
1 parent cb19fec commit 86ef459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/def_files/data/effects/shadows.sdr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ float samplePoissonPCF(sampler2DArray shadow_map, float shadowDepth, int cascade
3030
{
3131
if(cascade > 3 || cascade < 0) return 1.0;
3232

33-
vec2 poissonDisc[16] = {
33+
vec2 poissonDisc[16] = vec2[](
3434
vec2(-0.76275, -0.3432573),
3535
vec2(-0.5226235, -0.8277544),
3636
vec2(-0.3780261, 0.01528688),
@@ -47,7 +47,7 @@ float samplePoissonPCF(sampler2DArray shadow_map, float shadowDepth, int cascade
4747
vec2(0.05605913, -0.7570801),
4848
vec2(0.81772, -0.02475523),
4949
vec2(0.6890262, 0.5191521)
50-
};
50+
);
5151

5252
float maxUVOffset[4];
5353
maxUVOffset[0] = 1.0/300.0;

0 commit comments

Comments
 (0)