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
+3 -3
View File
@@ -16,8 +16,8 @@ out vec4 prevwvpposition;
void main() {
vec4 spos = vec4(pos.xyz, 1.0);
tex_coord = tex * tex_unpack;
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);
}