Merge pull request #438 from metallic77/slang

Update crt-sines.slang
This commit is contained in:
hizzlekizzle 2023-06-05 07:40:11 -05:00 committed by GitHub
commit 35ae463b72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ void main()
color *= SCANLINE * sin(fract(vTexCoord.y*SourceSize.y/SCALE)*3.141529) +(1.0-SCANLINE); color *= SCANLINE * sin(fract(vTexCoord.y*SourceSize.y/SCALE)*3.141529) +(1.0-SCANLINE);
color = pow(color,vec3(INGAMMA)); color = pow(color,vec3(INGAMMA));
color =mix(color, color*mask, dot(color, vec3(FADE))); color =mix(color*mask, color, dot(color, vec3(FADE)));
color *= mix(1.0,BOOST,lum); color *= mix(1.0,BOOST,lum);
color *= vec3(1.0+WPR, 1.0-WPR/2.0, 1.0-WPR/2.0); color *= vec3(1.0+WPR, 1.0-WPR/2.0, 1.0-WPR/2.0);