Added generic Buffer

This commit is contained in:
Simon Lübeß
2020-12-06 00:08:55 +01:00
parent 242d9e728c
commit 9964a1f5ad
4 changed files with 47 additions and 4 deletions
+6 -1
View File
@@ -1,3 +1,8 @@
cbuffer Constants
{
float4 BaseColor;
}
struct VS_IN
{
float3 Position : POSITION;
@@ -21,5 +26,5 @@ PS_IN VS(VS_IN input)
float4 PS(PS_IN input) : SV_TARGET
{
return input.Color;
return input.Color * BaseColor;
}