more OpenGL support, cameras and 3D projection and it now shares 3D models with vulkan, OpenGL does not work if launched, and switching to vulkan from OpenGL does not work
This commit is contained in:
parent
5ea45890c8
commit
5518dae1d7
43 changed files with 1298 additions and 187 deletions
17
resources/EngineResources/GLShaders/gui_vertex.glsl
Normal file
17
resources/EngineResources/GLShaders/gui_vertex.glsl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 330
|
||||
|
||||
layout (location=0) in vec2 inPos;
|
||||
layout (location=1) in vec2 inTextCoords;
|
||||
layout (location=2) in vec4 inColour;
|
||||
|
||||
out vec2 fragTextCoords;
|
||||
out vec4 fragColour;
|
||||
|
||||
uniform vec2 scale;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragTextCoords = inTextCoords;
|
||||
fragColour = inColour;
|
||||
gl_Position = vec4(inPos * scale + vec2(-1.0, 1.0), 0.0, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue