15 lines
296 B
GLSL
15 lines
296 B
GLSL
// 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;
|
|
}
|