Merge branch 'CSM-new'
CSM-dev is clipmap shadow map and it works
This commit is contained in:
@@ -6,13 +6,16 @@ layout(set = 0, binding = 0) uniform SceneData{
|
||||
mat4 view;
|
||||
mat4 proj;
|
||||
mat4 viewproj;
|
||||
mat4 lightViewProj; // legacy single-shadow for fallback
|
||||
// Legacy single shadow matrix (used for near range in mixed mode)
|
||||
mat4 lightViewProj;
|
||||
vec4 ambientColor;
|
||||
vec4 sunlightDirection; //w for sun power
|
||||
vec4 sunlightColor;
|
||||
// CSM data
|
||||
mat4 lightViewProjCascades[MAX_CASCADES];
|
||||
vec4 cascadeSplitsView; // positive view-space distances of far plane per cascade
|
||||
|
||||
// Cascaded shadow matrices (0 = near/simple map, 1..N-1 = CSM)
|
||||
mat4 lightViewProjCascades[4];
|
||||
// View-space split distances for selecting cascades (x,y,z,w)
|
||||
vec4 cascadeSplitsView;
|
||||
} sceneData;
|
||||
|
||||
layout(set = 1, binding = 0) uniform GLTFMaterialData{
|
||||
|
||||
Reference in New Issue
Block a user