Support lighting using a graphics buffer that is kep open!
This commit is contained in:
1 parent
4312ecd172
commit
3277624ec2
26 files changed
+342
-146
No files matched your search
@@ -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