HDR output buffer (WIP)

This commit is contained in:
2022-02-15 23:37:42 +08:00
parent a628fdb434
commit 326253a73b
5 changed files with 34 additions and 13 deletions

View File

@@ -3,6 +3,7 @@
uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
uniform mat4 mvp;
uniform mat4 lightspace;
uniform vec3 viewPos;
@@ -33,7 +34,7 @@ void main() {
vec4 posView = view * pos4;
fragDepthView = posView.z;
gl_Position = projection * posView;
gl_Position = mvp * vec4(vert, 1);
fragPosWorld -= viewPos;
}