Added preprocessing for effects

This commit is contained in:
Simon Lübeß
2021-02-14 15:31:58 +01:00
parent 1f33949be2
commit 6ab6a6a0b9
4 changed files with 110 additions and 12 deletions
+3 -1
View File
@@ -43,4 +43,6 @@ PS_IN VS(VS_IN input)
float4 PS(PS_IN input) : SV_TARGET
{
return input.Color * BaseColor;
}
}
#effect[VS=VS,PS=PS]
+3 -1
View File
@@ -50,4 +50,6 @@ PS_IN VS(VS_IN input)
float4 PS(PS_IN input) : SV_TARGET
{
return input.Color * ColorTexture.Sample(TextureSampler, input.TexCoord);
}
}
#effect[VS=VS,PS=PS]
+2 -2
View File
@@ -86,9 +86,9 @@ namespace Sandbox
{
_context = Application.Get().Window.Context..AddRef();
_effect = new Effect(_context, "content\\Shaders\\basicShader.hlsl", "VS", "PS");
_effect = new Effect(_context, "content\\Shaders\\basicShader.hlsl");
_textureEffect = new Effect(_context, "content\\Shaders\\textureShader.hlsl", "VS", "PS");
_textureEffect = new Effect(_context, "content\\Shaders\\textureShader.hlsl");
// Create Input Layout