- Add tests/RHI/OpenGL/integration/triangle/ with main.cpp, CMakeLists.txt - Add GLSL shaders (triangle.vert, triangle.frag) for vertex/fragment shading - Use OpenGLVertexArray, OpenGLBuffer, OpenGLShader, OpenGLPipelineState - Disable depth test to allow 2D triangle rendering - GT.ppm reused from D3D12 triangle test (0% diff)
11 lines
175 B
GLSL
11 lines
175 B
GLSL
#version 460
|
|
|
|
layout(location = 0) in vec4 aPosition;
|
|
layout(location = 1) in vec4 aColor;
|
|
|
|
out vec4 vColor;
|
|
|
|
void main() {
|
|
gl_Position = aPosition;
|
|
vColor = aColor;
|
|
} |