mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added reflection and constant buffers to vertex shaders
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
cbuffer Constants
|
||||
cbuffer Constants : register(b0)
|
||||
{
|
||||
float4x4 Transform = float4x4(1, 0, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1);
|
||||
}
|
||||
|
||||
cbuffer Constants : register(b1)
|
||||
{
|
||||
float4 BaseColor;
|
||||
}
|
||||
@@ -18,7 +26,7 @@ struct PS_IN
|
||||
PS_IN VS(VS_IN input)
|
||||
{
|
||||
PS_IN output;
|
||||
output.Position = float4(input.Position, 1);
|
||||
output.Position = mul(Transform, float4(input.Position, 1));
|
||||
output.Color = input.Color;
|
||||
|
||||
return output;
|
||||
|
||||
Reference in New Issue
Block a user