add sane-ish defaults to avoid ub

This commit is contained in:
numzero 2025-11-20 13:55:49 +03:00
parent a7746deec5
commit 61f19c85f4

View File

@ -8,18 +8,18 @@ namespace ffi {
struct Core; struct Core;
struct SphericalPosition { struct SphericalPosition {
float yaw; float yaw = 0.;
float pitch; float pitch = 0.;
float distance; float distance = 1.;
}; };
struct RedrawArgs { struct RedrawArgs {
SphericalPosition camera_position; SphericalPosition camera_position;
SphericalPosition light_position; SphericalPosition light_position;
float light_radius; float light_radius = 1.;
float light_spread; float light_spread = 0.;
float accum_sigma; float accum_sigma = 1.;
float accum_scale; float accum_scale = 1.;
}; };
} // namespace ffi } // namespace ffi