Mod cameras up to 1920x1080 (full-screen replays)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -523,7 +523,7 @@ interface render {
|
||||
pitch: f32,
|
||||
/// Vertical field of view, degrees (1 to 110).
|
||||
fov: f32,
|
||||
/// The picture's size in pixels (16 to 640 × 16 to 480).
|
||||
/// The picture's size in pixels (16 to 1920 × 16 to 1080).
|
||||
width: u32,
|
||||
height: u32,
|
||||
}
|
||||
|
||||
@@ -1991,8 +1991,8 @@ impl render::Host for State {
|
||||
v.yaw = angle(v.yaw);
|
||||
v.pitch = angle(v.pitch).clamp(-90.0, 90.0);
|
||||
v.fov = if v.fov.is_finite() { v.fov.clamp(1.0, 110.0) } else { 70.0 };
|
||||
v.width = v.width.clamp(16, 640);
|
||||
v.height = v.height.clamp(16, 480);
|
||||
v.width = v.width.clamp(16, 1920);
|
||||
v.height = v.height.clamp(16, 1080);
|
||||
v
|
||||
})
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user