Danbias/Code/OysterGraphics/Shader/HLSL/Deffered Shaders/Defines.hlsli

41 lines
729 B
HLSL
Raw Normal View History

#ifndef DEFINES
#define DEFINES
struct PointLight
{
float3 Pos;
float Radius;
float3 Color;
float Bright;
};
struct DiffSpec
{
float3 Diffuse;
float3 Specular;
};
2014-01-08 07:01:59 +01:00
cbuffer LightConstants : register(b0)
{
float4x4 InvProj;
2014-01-08 07:01:59 +01:00
float4x4 Proj;
float2 Pixels;
int Lights;
2014-01-08 07:01:59 +01:00
float SSAORadius;
float4x4 View;
}
2014-01-08 07:01:59 +01:00
Texture2D DiffuseGlow : register(t0);
Texture2D NormalSpec : register(t1);
Texture2D DepthTexture : register(t2);
2014-01-08 07:01:59 +01:00
StructuredBuffer<PointLight> Points : register(t3);
2014-01-08 07:01:59 +01:00
Texture1D SSAOKernel : register(t4);
2014-01-22 16:31:33 +01:00
Texture2D SSAORand : register(t5);
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);
#endif