Skip to content

Commit

Permalink
resources/shader: potential fix for disappearing cutscene text (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Sep 30, 2024
1 parent 9400f77 commit 846056a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/00-taisei.pkgdir/shader/text_cutscene.frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void spriteMain(out vec4 fragColor) {
float o = customParams.r;
float xpos = 0.5 + texCoordOverlay.x;
float slide_factor = 8;
mask = 1.0 - smoothstep(slide_factor * o * o, slide_factor * o, mask + (slide_factor - 1.0) * xpos);
mask = 1.0 - smoothstep(slide_factor * o * o * 0.95, slide_factor * o, mask + (slide_factor - 1.0) * xpos);
mask = smoothstep(0.2, 0.8, mask);

vec3 outlines = texture(tex, texCoord).rgb;
Expand Down

0 comments on commit 846056a

Please sign in to comment.