- [Mac] Fix shader not have default pixel output.

This commit is contained in:
Tanasart 2024-09-10 10:03:28 +07:00
parent 447d1ffa96
commit 3dc115e7c9

View file

@ -129,5 +129,6 @@ void main() {
float dist = sqrt(abs(d)); float dist = sqrt(abs(d));
vec4 c = sampleTexture(mix(uv, cen + uv / dist, str)); vec4 c = sampleTexture(mix(uv, cen + uv / dist, str));
gl_FragColor = vec4(0.);
if(d > trim) gl_FragColor = c; if(d > trim) gl_FragColor = c;
} }