Shadows working but look dumb. The issue so far was that framebuffer.cpp interferes with the framebuffer used to create the shadow map.
This commit is contained in:
parent
a29494325b
commit
482ec07fb3
19 changed files with 261 additions and 206 deletions
11
33-shadow-mapping/shaders/33-shadow_dbg.vert.glsl
Normal file
11
33-shadow-mapping/shaders/33-shadow_dbg.vert.glsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 330 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec2 aTexCoords;
|
||||
|
||||
out vec2 TexCoords;
|
||||
|
||||
void main()
|
||||
{
|
||||
TexCoords = aTexCoords;
|
||||
gl_Position = vec4(aPos, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue