diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-25 19:50:36 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-25 19:50:36 -0500 |
| commit | 8525f8d1f9f8ad3ea234ff485652f4f90acc3f56 (patch) | |
| tree | f82615bbdf90c832c610720cb3317178089c7948 /crates/renderer/src/assets | |
| parent | cfc11a79c914abc5012ffabb5b0697487ae1acfd (diff) | |
Update
Diffstat (limited to 'crates/renderer/src/assets')
| -rw-r--r-- | crates/renderer/src/assets/shaders/flat/frag.glsl | 4 | ||||
| -rw-r--r-- | crates/renderer/src/assets/textures/adblock.png | bin | 0 -> 9835 bytes |
2 files changed, 4 insertions, 0 deletions
diff --git a/crates/renderer/src/assets/shaders/flat/frag.glsl b/crates/renderer/src/assets/shaders/flat/frag.glsl index 7006a2b..cab840d 100644 --- a/crates/renderer/src/assets/shaders/flat/frag.glsl +++ b/crates/renderer/src/assets/shaders/flat/frag.glsl @@ -1,11 +1,15 @@ uniform sampler2D texture_data; +uniform float transparency; + void main() { + float opacity = 1.0 - clamp(transparency, 0.0, 1.0); vec2 tcfull = vec2(vertex_texcoord.x, 1.0 - vertex_texcoord.y); vec4 texel = texture(texture_data, tcfull); if (texel.a != 1.0) { discard; } + texel.a *= opacity; frag_color = texel; } diff --git a/crates/renderer/src/assets/textures/adblock.png b/crates/renderer/src/assets/textures/adblock.png Binary files differnew file mode 100644 index 0000000..df59287 --- /dev/null +++ b/crates/renderer/src/assets/textures/adblock.png |
