diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-20 10:02:04 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-20 10:02:04 +0200 |
| commit | c0a6bb6ae6db8f4de39b630a2f5e20c3f976e6a9 (patch) | |
| tree | f97941afc96ab415bbe16d63345704a0c4b9764a /shaders/GBuffPbrInstanced.vert | |
| parent | 30f1e58efb3910a41cee30ff89a1028fba97c3c1 (diff) | |
wiptests
Diffstat (limited to 'shaders/GBuffPbrInstanced.vert')
| -rw-r--r-- | shaders/GBuffPbrInstanced.vert | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shaders/GBuffPbrInstanced.vert b/shaders/GBuffPbrInstanced.vert index 9a91cfc..1095beb 100644 --- a/shaders/GBuffPbrInstanced.vert +++ b/shaders/GBuffPbrInstanced.vert @@ -28,10 +28,11 @@ out gl_PerVertex void main() { vec4 locPos = ubo.model * inModel * vec4(inPos, 1.0); + //locPos.y = -locPos.y; outNormal = normalize(transpose(inverse(mat3(ubo.model * inModel))) * inNormal); outColor = inColor; outWorldPos = locPos.xyz; outUV0 = inUV0; - outUV1 = inUV1; - gl_Position = ubo.projection * ubo.view * vec4(outWorldPos, 1.0); + outUV1 = inUV1; + gl_Position = ubo.projection * ubo.view * vec4(outWorldPos, 1.0); } |