Update shaders

This commit is contained in:
luboslenco
2024-10-02 23:17:50 +02:00
parent d5bf710dd1
commit 5afa08ff91
35 changed files with 107 additions and 123 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ in vec4 color;
out vec4 frag_color;
void main() {
frag_color = vec4(1.0) - textureLod(tex, tex_coord, 0).rgba * color;
frag_color = vec4(1.0, 1.0, 1.0, 1.0) - textureLod(tex, tex_coord, 0).rgba * color;
}
+3 -3
View File
@@ -12,8 +12,8 @@ out vec4 prevwvpposition;
void main() {
vec4 spos = vec4(pos.xyz, 1.0);
wnormal = normalize(N * vec3(nor.xy, pos.w));
gl_Position = WVP * spos;
wnormal = normalize(mul(vec3(nor.xy, pos.w), N));
gl_Position = mul(spos, WVP);
wvpposition = gl_Position;
prevwvpposition = prevWVP * spos;
prevwvpposition = mul(spos, prevWVP);
}