Sketch ini

This commit is contained in:
Ilusha 2024-03-17 10:04:52 +03:00 committed by Ilya Shurupov
parent 8866290d29
commit f8c38a8a37
16 changed files with 2510 additions and 0 deletions

View file

@ -0,0 +1,28 @@
#version 330 core
uniform vec4 Color;
layout(location = 0) out vec4 color;
uniform float Target;
uniform vec4 BGCol;
#define A 0.1f
void main() {
float x = gl_FragCoord.z;
float val = A;
float f = Target * 2;
if (x < f) {
val = ((A - 1) / f) * x + 1;
}
val = clamp(val, A, 1);
color = vec4((Color.xyz - BGCol.xyz) * val + BGCol.xyz, 1.f);
}