refactor: externalize builtin object id and grid shader assets

This commit is contained in:
2026-04-02 23:15:19 +08:00
parent c63dcf2229
commit ffb62ddd9c
15 changed files with 578 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
// XC_BUILTIN_OBJECT_ID_OPENGL_PS
#version 430
layout(std140, binding = 0) uniform PerObjectConstants {
mat4 gProjectionMatrix;
mat4 gViewMatrix;
mat4 gModelMatrix;
vec4 gObjectIdColor;
};
layout(location = 0) out vec4 fragColor;
void main() {
fragColor = gObjectIdColor;
}