diff options
Diffstat (limited to 'APEX_1.4/samples_v2/SampleBase/shaders/common_buffers.hlsl')
| -rw-r--r-- | APEX_1.4/samples_v2/SampleBase/shaders/common_buffers.hlsl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/APEX_1.4/samples_v2/SampleBase/shaders/common_buffers.hlsl b/APEX_1.4/samples_v2/SampleBase/shaders/common_buffers.hlsl new file mode 100644 index 00000000..62bf0776 --- /dev/null +++ b/APEX_1.4/samples_v2/SampleBase/shaders/common_buffers.hlsl @@ -0,0 +1,29 @@ +#ifndef COMMON_BUFFERS_HLSL +#define COMMON_BUFFERS_HLSL + +cbuffer Camera : register(b0) +{ + row_major matrix projection; + row_major matrix projectionInv; + row_major matrix view; + float3 viewPos; +}; + +cbuffer World : register(b1) +{ + float3 ambientColor; + float3 pointLightPos; + float3 pointLightColor; + float3 dirLightDir; + float specularPower; + float3 dirLightColor; + float specularIntensity; +}; + +cbuffer Object : register(b2) +{ + row_major matrix model; + float3 defaultColor; +}; + +#endif
\ No newline at end of file |