16 lines
321 B
HLSL
16 lines
321 B
HLSL
// XC_BUILTIN_OBJECT_ID_D3D12_PS
|
|
cbuffer PerObjectConstants : register(b0) {
|
|
float4x4 gProjectionMatrix;
|
|
float4x4 gViewMatrix;
|
|
float4x4 gModelMatrix;
|
|
float4 gObjectIdColor;
|
|
};
|
|
|
|
struct PSInput {
|
|
float4 position : SV_POSITION;
|
|
};
|
|
|
|
float4 MainPS(PSInput input) : SV_TARGET {
|
|
return gObjectIdColor;
|
|
}
|