haze
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
in vec2 v_uv;
|
||||
flat in uint v_tileidx;
|
||||
in float v_fade;
|
||||
out vec4 pixcolor;
|
||||
uniform sampler2DArray t_tiles;
|
||||
uniform b_constants {
|
||||
@@ -11,6 +12,8 @@ uniform b_constants {
|
||||
float R1;
|
||||
float R2;
|
||||
float R3;
|
||||
float haze;
|
||||
vec4 hazecolor;
|
||||
};
|
||||
uniform b_locals {
|
||||
uint millis;
|
||||
@@ -24,5 +27,6 @@ void main() {
|
||||
anim_uv = vec2(v_uv.x, v_uv.y + float(millis % MILLIS_PER_TILE) / MILLIS_PER_TILE);
|
||||
}
|
||||
|
||||
pixcolor = texture(t_tiles, vec3(anim_uv.x, 1.0 - anim_uv.y, v_tileidx));
|
||||
vec4 texcolor = texture(t_tiles, vec3(anim_uv.x, 1.0 - anim_uv.y, v_tileidx));
|
||||
pixcolor = mix(texcolor, hazecolor, v_fade);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user