HLSL: Add function call syntax and AST building.
This commit is contained in:
parent
9db3117e38
commit
4678ca9dac
6 changed files with 83 additions and 25 deletions
|
|
@ -1,11 +1,12 @@
|
|||
//float4 AmbientColor = float4(1, 0.5, 0, 1);
|
||||
//float AmbientIntensity = 0.1;
|
||||
float4 AmbientColor = float4(1, 0.5, 0, 1);
|
||||
float AmbientIntensity = 0.1;
|
||||
|
||||
float4 PixelShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
// return input * AmbientIntensity + AmbientColor;
|
||||
return input * AmbientIntensity + AmbientColor;
|
||||
return input * input + input * input;
|
||||
return input + input * input + input;
|
||||
return ++input * -+-+--input;
|
||||
return input++ + ++input;
|
||||
return sin(input);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue