|
|
@@ -15,20 +15,20 @@ class ISubmitter;
|
|
|
inline auto calculate_horse_lod(float distance) -> HorseLOD;
|
|
|
|
|
|
struct HorseRenderStats {
|
|
|
- uint32_t horsesTotal{0};
|
|
|
- uint32_t horsesRendered{0};
|
|
|
- uint32_t horsesSkippedLOD{0};
|
|
|
- uint32_t lodFull{0};
|
|
|
- uint32_t lodReduced{0};
|
|
|
- uint32_t lodMinimal{0};
|
|
|
+ uint32_t horses_total{0};
|
|
|
+ uint32_t horses_rendered{0};
|
|
|
+ uint32_t horses_skipped_lod{0};
|
|
|
+ uint32_t lod_full{0};
|
|
|
+ uint32_t lod_reduced{0};
|
|
|
+ uint32_t lod_minimal{0};
|
|
|
|
|
|
void reset() {
|
|
|
- horsesTotal = 0;
|
|
|
- horsesRendered = 0;
|
|
|
- horsesSkippedLOD = 0;
|
|
|
- lodFull = 0;
|
|
|
- lodReduced = 0;
|
|
|
- lodMinimal = 0;
|
|
|
+ horses_total = 0;
|
|
|
+ horses_rendered = 0;
|
|
|
+ horses_skipped_lod = 0;
|
|
|
+ lod_full = 0;
|
|
|
+ lod_reduced = 0;
|
|
|
+ lod_minimal = 0;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -37,52 +37,52 @@ auto get_horse_render_stats() -> const HorseRenderStats &;
|
|
|
void reset_horse_render_stats();
|
|
|
|
|
|
struct HorseDimensions {
|
|
|
- float bodyLength{};
|
|
|
- float bodyWidth{};
|
|
|
- float bodyHeight{};
|
|
|
- float barrel_centerY{};
|
|
|
+ float body_length{};
|
|
|
+ float body_width{};
|
|
|
+ float body_height{};
|
|
|
+ float barrel_center_y{};
|
|
|
|
|
|
- float neckLength{};
|
|
|
- float neckRise{};
|
|
|
+ float neck_length{};
|
|
|
+ float neck_rise{};
|
|
|
|
|
|
- float headLength{};
|
|
|
- float headWidth{};
|
|
|
- float headHeight{};
|
|
|
- float muzzleLength{};
|
|
|
+ float head_length{};
|
|
|
+ float head_width{};
|
|
|
+ float head_height{};
|
|
|
+ float muzzle_length{};
|
|
|
|
|
|
- float legLength{};
|
|
|
- float hoofHeight{};
|
|
|
+ float leg_length{};
|
|
|
+ float hoof_height{};
|
|
|
|
|
|
- float tailLength{};
|
|
|
+ float tail_length{};
|
|
|
|
|
|
float saddle_height{};
|
|
|
- float saddleThickness{};
|
|
|
- float seatForwardOffset{};
|
|
|
+ float saddle_thickness{};
|
|
|
+ float seat_forward_offset{};
|
|
|
|
|
|
- float stirrupDrop{};
|
|
|
- float stirrupOut{};
|
|
|
+ float stirrup_drop{};
|
|
|
+ float stirrup_out{};
|
|
|
|
|
|
- float idleBobAmplitude{};
|
|
|
- float moveBobAmplitude{};
|
|
|
+ float idle_bob_amplitude{};
|
|
|
+ float move_bob_amplitude{};
|
|
|
};
|
|
|
|
|
|
struct HorseVariant {
|
|
|
- QVector3D coatColor;
|
|
|
+ QVector3D coat_color;
|
|
|
QVector3D mane_color;
|
|
|
QVector3D tail_color;
|
|
|
- QVector3D muzzleColor;
|
|
|
+ QVector3D muzzle_color;
|
|
|
QVector3D hoof_color;
|
|
|
- QVector3D saddleColor;
|
|
|
- QVector3D blanketColor;
|
|
|
+ QVector3D saddle_color;
|
|
|
+ QVector3D blanket_color;
|
|
|
QVector3D tack_color;
|
|
|
};
|
|
|
|
|
|
struct HorseGait {
|
|
|
- float cycleTime{};
|
|
|
- float frontLegPhase{};
|
|
|
- float rearLegPhase{};
|
|
|
- float strideSwing{};
|
|
|
- float strideLift{};
|
|
|
+ float cycle_time{};
|
|
|
+ float front_leg_phase{};
|
|
|
+ float rear_leg_phase{};
|
|
|
+ float stride_swing{};
|
|
|
+ float stride_lift{};
|
|
|
};
|
|
|
|
|
|
struct HorseProfile {
|
|
|
@@ -175,26 +175,26 @@ auto evaluate_horse_motion(HorseProfile &profile, const AnimationInputs &anim,
|
|
|
void apply_mount_vertical_offset(MountedAttachmentFrame &frame, float bob);
|
|
|
|
|
|
inline void scale_horse_dimensions(HorseDimensions &dims, float scale) {
|
|
|
- dims.bodyLength *= scale;
|
|
|
- dims.bodyWidth *= scale;
|
|
|
- dims.bodyHeight *= scale;
|
|
|
- dims.neckLength *= scale;
|
|
|
- dims.neckRise *= scale;
|
|
|
- dims.headLength *= scale;
|
|
|
- dims.headWidth *= scale;
|
|
|
- dims.headHeight *= scale;
|
|
|
- dims.muzzleLength *= scale;
|
|
|
- dims.legLength *= scale;
|
|
|
- dims.hoofHeight *= scale;
|
|
|
- dims.tailLength *= scale;
|
|
|
- dims.saddleThickness *= scale;
|
|
|
- dims.seatForwardOffset *= scale;
|
|
|
- dims.stirrupOut *= scale;
|
|
|
- dims.stirrupDrop *= scale;
|
|
|
- dims.barrel_centerY *= scale;
|
|
|
+ dims.body_length *= scale;
|
|
|
+ dims.body_width *= scale;
|
|
|
+ dims.body_height *= scale;
|
|
|
+ dims.neck_length *= scale;
|
|
|
+ dims.neck_rise *= scale;
|
|
|
+ dims.head_length *= scale;
|
|
|
+ dims.head_width *= scale;
|
|
|
+ dims.head_height *= scale;
|
|
|
+ dims.muzzle_length *= scale;
|
|
|
+ dims.leg_length *= scale;
|
|
|
+ dims.hoof_height *= scale;
|
|
|
+ dims.tail_length *= scale;
|
|
|
+ dims.saddle_thickness *= scale;
|
|
|
+ dims.seat_forward_offset *= scale;
|
|
|
+ dims.stirrup_out *= scale;
|
|
|
+ dims.stirrup_drop *= scale;
|
|
|
+ dims.barrel_center_y *= scale;
|
|
|
dims.saddle_height *= scale;
|
|
|
- dims.idleBobAmplitude *= scale;
|
|
|
- dims.moveBobAmplitude *= scale;
|
|
|
+ dims.idle_bob_amplitude *= scale;
|
|
|
+ dims.move_bob_amplitude *= scale;
|
|
|
}
|
|
|
|
|
|
class HorseRendererBase {
|