refactor: consolidate duplicate ShadowParamsUBO structure definition

Move ShadowParamsUBO from 5 separate shadow rendering functions (2 in
m2_renderer, 1 in terrain_renderer, 1 in wmo_renderer) into shared
vk_frame_data.hpp header. Eliminates 5 identical local struct definitions
and improves consistency across all shadow pass implementations. Structure
layout matches shader std140 uniform buffer requirements.
This commit is contained in:
Kelsi 2026-03-11 11:37:58 -07:00
parent b3d8651db9
commit b5a2175269
4 changed files with 10 additions and 37 deletions

View file

@ -31,5 +31,15 @@ struct ShadowPush {
glm::mat4 model;
};
// Uniform buffer for shadow rendering parameters (matches shader std140 layout)
struct ShadowParamsUBO {
int32_t useBones;
int32_t useTexture;
int32_t alphaTest;
int32_t foliageSway;
float windTime;
float foliageMotionDamp;
};
} // namespace rendering
} // namespace wowee