Support lighting using a graphics buffer that is kep open!

This commit is contained in:
2026-02-23 19:24:57 -05:00
parent 4312ecd172
commit 3277624ec2
26 changed files with 342 additions and 146 deletions

View File

@@ -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;
};