mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
b3d8651db9
commit
b5a2175269
4 changed files with 10 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue