2013-12-05 14:56:34 +01:00
|
|
|
#ifndef DEFINES
|
|
|
|
#define DEFINES
|
|
|
|
|
2013-11-28 14:34:52 +01:00
|
|
|
struct PointLight
|
|
|
|
{
|
2013-12-18 20:28:06 +01:00
|
|
|
float3 Pos;
|
|
|
|
float Radius;
|
|
|
|
float3 Color;
|
|
|
|
float Bright;
|
2013-12-05 14:56:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DiffSpec
|
|
|
|
{
|
|
|
|
float3 Diffuse;
|
|
|
|
float3 Specular;
|
|
|
|
};
|
|
|
|
|
2014-01-08 07:01:59 +01:00
|
|
|
cbuffer LightConstants : register(b0)
|
2013-12-05 14:56:34 +01:00
|
|
|
{
|
|
|
|
float4x4 InvProj;
|
2014-01-08 07:01:59 +01:00
|
|
|
float4x4 Proj;
|
2013-12-18 20:28:06 +01:00
|
|
|
float2 Pixels;
|
|
|
|
int Lights;
|
2014-01-08 07:01:59 +01:00
|
|
|
float SSAORadius;
|
2013-12-18 20:36:41 +01:00
|
|
|
float4x4 View;
|
2013-12-05 14:56:34 +01:00
|
|
|
}
|
|
|
|
|
2014-02-25 09:45:02 +01:00
|
|
|
struct FrustrumPoints
|
|
|
|
{
|
|
|
|
float3 v0;
|
|
|
|
float3 v1;
|
|
|
|
float3 v2;
|
|
|
|
float3 v3;
|
|
|
|
float3 v4;
|
|
|
|
float3 v5;
|
|
|
|
};
|
|
|
|
|
2014-01-08 07:01:59 +01:00
|
|
|
Texture2D DiffuseGlow : register(t0);
|
|
|
|
Texture2D NormalSpec : register(t1);
|
2014-02-07 11:09:59 +01:00
|
|
|
Texture2D GUI : register(t2);
|
|
|
|
Texture2D DepthTexture : register(t3);
|
2013-11-28 14:34:52 +01:00
|
|
|
|
2014-02-07 11:09:59 +01:00
|
|
|
StructuredBuffer<PointLight> Points : register(t4);
|
2013-12-18 20:28:06 +01:00
|
|
|
|
2014-02-07 11:09:59 +01:00
|
|
|
Texture1D SSAOKernel : register(t5);
|
|
|
|
Texture2D SSAORand : register(t6);
|
2013-12-18 20:28:06 +01:00
|
|
|
|
2014-01-08 07:01:59 +01:00
|
|
|
RWTexture2D<float4> Diffuse : register(u0);
|
|
|
|
RWTexture2D<float4> Specular : register(u1);
|
2014-01-22 16:31:33 +01:00
|
|
|
RWTexture2D<float4> Ambient : register(u2);
|
2013-12-18 20:28:06 +01:00
|
|
|
|
2013-12-05 14:56:34 +01:00
|
|
|
#endif
|