add opengl code
This commit is contained in:
19
Sandbox/assets/shaders/shader.glsl
Normal file
19
Sandbox/assets/shaders/shader.glsl
Normal file
@ -0,0 +1,19 @@
|
||||
#type vertex
|
||||
#version 430 core
|
||||
|
||||
layout(location = 0) in vec3 a_Position;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(a_Position, 1.0);
|
||||
}
|
||||
|
||||
#type fragment
|
||||
#version 430 core
|
||||
|
||||
layout(location = 0) out vec4 o_Color;
|
||||
|
||||
void main()
|
||||
{
|
||||
o_Color = vec4(1.0, 0.0, 1.0, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user