use gl_FragColor
WARNING: TODO: gl_FragColor is deprecated
This commit is contained in:
parent
3d6c1bf630
commit
daa51a24fd
1 changed files with 2 additions and 2 deletions
|
|
@ -357,7 +357,7 @@ float bloom(vec2 uv2) {
|
|||
* smoothstep(0., -SMOOTH*20., stdRS(uvC, -0.02)) * 0.5;
|
||||
}
|
||||
|
||||
void main(out vec4 fragColor) {
|
||||
void main() {
|
||||
vec2 uv = vec2(gl_FragCoord.x, uResolution.y - gl_FragCoord.y);
|
||||
vec2 uvT = ROWCOLS * FONT_SIZE * uv / uResolution.xy;
|
||||
vec2 uvG = floor(ROWCOLS * uv / uResolution.xy);
|
||||
|
|
@ -381,6 +381,6 @@ void main(out vec4 fragColor) {
|
|||
val = pow(18.0, val) - 1.0; // TODO: try changing 18.0 to 200.0 and you'll notice some pretty changes :)
|
||||
}
|
||||
|
||||
fragColor = vt220Font(uvT - uvG * FONT_SIZE, val) * PHOSPHOR_COL + BG_COL;
|
||||
gl_FragColor = vt220Font(uvT - uvG * FONT_SIZE, val) * PHOSPHOR_COL + BG_COL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue