- Added Scene - Added Entity - Added Components * TransformComponent * SpriteRendererComponent - Minor fixes
19 lines
No EOL
374 B
HLSL
19 lines
No EOL
374 B
HLSL
struct VertexOut
|
|
{
|
|
float4 Color : COLOR;
|
|
float4 Position : SV_Position;
|
|
};
|
|
|
|
cbuffer cv_ViewProjection : register(b0)
|
|
{
|
|
row_major matrix viewProjection;
|
|
}
|
|
|
|
VertexOut main(float3 InPosition : POSITION, float4 InColor : COLOR)
|
|
{
|
|
VertexOut vso;
|
|
vso.Position = mul(float4(InPosition.x, InPosition.y, InPosition.z, 1.0), viewProjection);
|
|
vso.Color = InColor;
|
|
|
|
return vso;
|
|
} |