mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
fixes, fog experiments, add shaders to tree
This commit is contained in:
15
shaders/vbocolor.vert
Normal file
15
shaders/vbocolor.vert
Normal file
@@ -0,0 +1,15 @@
|
||||
#version 330
|
||||
|
||||
layout (location = 0) in vec3 v_vert;
|
||||
layout (location = 1) in vec3 v_color;
|
||||
|
||||
out vec3 f_color;
|
||||
|
||||
uniform mat4 modelview;
|
||||
uniform mat4 projection;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection * modelview * vec4(v_vert, 1.0f);
|
||||
f_color = v_color;
|
||||
}
|
||||
Reference in New Issue
Block a user