Support lighting using a graphics buffer that is kep open!
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
#ifndef ROOT_CONSTANTS_HLSL
|
||||
#define ROOT_CONSTANTS_HLSL
|
||||
|
||||
struct PointLight
|
||||
{
|
||||
float3 Position;
|
||||
float Radius;
|
||||
float3 Color;
|
||||
float Intensity;
|
||||
};
|
||||
|
||||
cbuffer RootConstants : register(b0, space0)
|
||||
{
|
||||
@@ -16,6 +24,9 @@ cbuffer RootConstants : register(b0, space0)
|
||||
float LightPad;
|
||||
float3 LightColor;
|
||||
float AmbientIntensity;
|
||||
|
||||
uint LightBufferIndex;
|
||||
uint ActiveLightCount;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user