HLSL: Accept basic funtion definitions. (Not yet mapping input/output for entry point.)
This commit is contained in:
parent
48882ef5a8
commit
5f934b039a
4 changed files with 240 additions and 76 deletions
|
|
@ -1,11 +1,7 @@
|
|||
float4x4 World;
|
||||
float4x4 View;
|
||||
float4x4 Projection;
|
||||
|
||||
float4 AmbientColor = float4(1, 0.5, 0, 1);
|
||||
float AmbientIntensity = 0.1;
|
||||
//float AmbientIntensity = 0.1;
|
||||
|
||||
//float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
|
||||
//{
|
||||
// return AmbientColor * AmbientIntensity;
|
||||
//}
|
||||
float4 PixelShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
return input /* * AmbientIntensity */ + AmbientColor;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue