diff options
Diffstat (limited to 'samples/resources/shaders/common_buffers.hlsl')
| -rwxr-xr-x[-rw-r--r--] | samples/resources/shaders/common_buffers.hlsl | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/samples/resources/shaders/common_buffers.hlsl b/samples/resources/shaders/common_buffers.hlsl index 1aa3386..4332370 100644..100755 --- a/samples/resources/shaders/common_buffers.hlsl +++ b/samples/resources/shaders/common_buffers.hlsl @@ -1,28 +1,28 @@ -#ifndef COMMON_BUFFERS_HLSL -#define COMMON_BUFFERS_HLSL - -cbuffer Camera : register(b0) -{ - row_major matrix viewProjection; - row_major matrix projectionInv; - 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; - float4 defaultColor; -}; - +#ifndef COMMON_BUFFERS_HLSL
+#define COMMON_BUFFERS_HLSL
+
+cbuffer Camera : register(b0)
+{
+ row_major matrix viewProjection;
+ row_major matrix projectionInv;
+ 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;
+ float4 defaultColor;
+};
+
#endif
\ No newline at end of file |