mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
dunno when this broke, but... fix smaa
This commit is contained in:
parent
04996b80cc
commit
d30218fd22
|
@ -614,7 +614,7 @@ SamplerState PointSampler { Filter = MIN_MAG_MIP_POINT; AddressU = Clamp; Addres
|
||||||
vec3 neighbours = SMAAGatherNeighbours(coord, offset, predicationTex);
|
vec3 neighbours = SMAAGatherNeighbours(coord, offset, predicationTex);
|
||||||
vec2 delta = abs(neighbours.xx - neighbours.yz);
|
vec2 delta = abs(neighbours.xx - neighbours.yz);
|
||||||
vec2 edges = step(SMAA_PREDICATION_THRESHOLD, delta);
|
vec2 edges = step(SMAA_PREDICATION_THRESHOLD, delta);
|
||||||
return SMAA_PREDICATION_SCALE * SMAA_THRESHOLD * (1.0 - SMAA_PREDICATION_STRENGTH * edges);
|
return vec3(SMAA_PREDICATION_SCALE * SMAA_THRESHOLD * (1.0 - SMAA_PREDICATION_STRENGTH * edges), 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue