mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
* fix(renderer): defer uniform location retrieval and add view matrix in outline rendering * refactor(gameplay): encapsulate per-type vertex data into VertexData struct * feat(rendering): separate transparent blocks into discard and blend modes * feat(renderer): implement order-independent transparency * fix(shaders): reduce alpha discard threshold to 0.8
11 lines
198 B
GLSL
11 lines
198 B
GLSL
#version 460
|
|
|
|
layout (location = 0) in vec2 pos;
|
|
layout (location = 1) in vec2 texCoord;
|
|
|
|
out vec2 TexCoord;
|
|
|
|
void main() {
|
|
gl_Position = vec4(pos.x, pos.y, 0.0, 1.0);
|
|
TexCoord = texCoord;
|
|
} |