aboutsummaryrefslogtreecommitdiff
path: root/samples/resources/shaders/common_buffers.hlsl
blob: 4332370c646299dbe2983b88cf74005e241d255b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
};

#endif