26 lines
609 B
HLSL
26 lines
609 B
HLSL
// XC_EDITOR_SCENE_VIEW_OBJECT_ID_OUTLINE_D3D12_VS
|
|
cbuffer OutlineConstants : register(b0) {
|
|
float4 gViewportSizeAndTexelSize;
|
|
float4 gOutlineColor;
|
|
float4 gSelectedInfo;
|
|
float4 gSelectedObjectColors[256];
|
|
};
|
|
|
|
Texture2D gObjectIdTexture : register(t0);
|
|
|
|
struct VSOutput {
|
|
float4 position : SV_POSITION;
|
|
};
|
|
|
|
VSOutput MainVS(uint vertexId : SV_VertexID) {
|
|
static const float2 positions[3] = {
|
|
float2(-1.0, -1.0),
|
|
float2(-1.0, 3.0),
|
|
float2( 3.0, -1.0)
|
|
};
|
|
|
|
VSOutput output;
|
|
output.position = float4(positions[vertexId], 0.0, 1.0);
|
|
return output;
|
|
}
|