HLSL: Add basic declaration syntax and AST generation.
This commit is contained in:
parent
e01a9bc8c0
commit
87142c71fb
4 changed files with 335 additions and 14 deletions
|
|
@ -1,11 +1,11 @@
|
|||
//float4x4 World;
|
||||
//float4x4 View;
|
||||
//float4x4 Projection;
|
||||
//
|
||||
//float4 AmbientColor = float4(1, 1, 1, 1);
|
||||
//float AmbientIntensity = 0.1;
|
||||
//
|
||||
//float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
|
||||
//{
|
||||
// return AmbientColor * AmbientIntensity;
|
||||
//}
|
||||
float4x4 World;
|
||||
float4x4 View;
|
||||
float4x4 Projection;
|
||||
|
||||
float4 AmbientColor = float4(1, 1, 1, 1);
|
||||
float AmbientIntensity = 0.1;
|
||||
|
||||
//float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
|
||||
//{
|
||||
// return AmbientColor * AmbientIntensity;
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue