Have the original lighting system back and a little lightbulb model to show where the light is.
This commit is contained in:
parent
3231f747a9
commit
a29494325b
143 changed files with 16360 additions and 9 deletions
12
33-shadow-mapping/shaders/10.1.instancing.vs
Normal file
12
33-shadow-mapping/shaders/10.1.instancing.vs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 330 core
|
||||
layout (location = 0) in vec2 aPos;
|
||||
layout (location = 1) in vec3 aColor;
|
||||
layout (location = 2) in vec2 aOffset;
|
||||
|
||||
out vec3 fColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
fColor = aColor;
|
||||
gl_Position = vec4(aPos + aOffset, 0.0, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue