mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
initial commit
This commit is contained in:
parent
27b194816b
commit
fc46b7c434
36 changed files with 755 additions and 71 deletions
17
res/shaders/shadows.glslv
Normal file
17
res/shaders/shadows.glslv
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <commons>
|
||||
|
||||
layout (location = 0) in vec3 v_position;
|
||||
layout (location = 1) in vec2 v_texCoord;
|
||||
layout (location = 2) in vec4 v_light;
|
||||
layout (location = 3) in vec4 v_normal;
|
||||
|
||||
out vec2 a_texCoord;
|
||||
|
||||
uniform mat4 u_model;
|
||||
uniform mat4 u_proj;
|
||||
uniform mat4 u_view;
|
||||
|
||||
void main() {
|
||||
a_texCoord = v_texCoord;
|
||||
gl_Position = u_proj * u_view * u_model * vec4(v_position, 1.0f);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue