15 lines
305 B
GLSL
15 lines
305 B
GLSL
// XC_BUILTIN_OBJECT_ID_VULKAN_PS
|
|
#version 450
|
|
layout(set = 0, binding = 0, std140) uniform PerObjectConstants {
|
|
mat4 gProjectionMatrix;
|
|
mat4 gViewMatrix;
|
|
mat4 gModelMatrix;
|
|
vec4 gObjectIdColor;
|
|
};
|
|
|
|
layout(location = 0) out vec4 fragColor;
|
|
|
|
void main() {
|
|
fragColor = gObjectIdColor;
|
|
}
|