- Add tests/RHI/OpenGL/integration/quad/ with main.cpp, CMakeLists.txt - Add GLSL shaders (quad.vert, quad.frag) for textured quad rendering - Use OpenGLVertexArray, OpenGLBuffer, OpenGLShader, OpenGLPipelineState - Add OpenGLTexture::LoadFromFile for texture loading (earth.png) - Add OpenGLSampler for texture sampling configuration - Disable depth test for 2D quad rendering - GT.ppm generated from OpenGL rendering output (0% diff on re-run)
10 lines
144 B
GLSL
10 lines
144 B
GLSL
#version 460
|
|
|
|
in vec2 vTexcoord;
|
|
out vec4 fragColor;
|
|
|
|
uniform sampler2D uTexture;
|
|
|
|
void main() {
|
|
fragColor = texture(uTexture, vTexcoord);
|
|
} |