Logo
Explore Help
Register Sign In
xuanchi/XCEngine
1
1
Fork 0
You've already forked XCEngine
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
9adac63b4c39671322e542203fd499b11151845a
XCEngine/tests/RHI/OpenGL/integration/quad/Res/Shader/quad.vert

11 lines
187 B
GLSL
Raw Normal View History

Add OpenGL quad integration test with texture mapping - 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)
2026-03-22 03:03:14 +08:00
#version 460
layout(location = 0) in vec4 aPosition;
layout(location = 1) in vec2 aTexcoord;
out vec2 vTexcoord;
void main() {
gl_Position = aPosition;
vTexcoord = aTexcoord;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 56ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API