~tleguern/krt

c85ff22e1c33fb245b8ab53ab80b14b394ff91ea — Tristan Le Guern 1 year, 8 months ago 2c552bb
Clamp image_height
1 files changed, 3 insertions(+), 0 deletions(-)

M krt.sh
M krt.sh => krt.sh +3 -0
@@ 189,6 189,9 @@ aspect_ratio=$(( 16000 * 1000 / 9000 ))
image_width=$(( 400 * 1000 ))
image_height=$(( image_width * 1000 / aspect_ratio ))

# Clamp image_height
image_height=$(( image_height - image_height % 1000 ))

# Camera
viewport_height=2000
viewport_width=$(( aspect_ratio * viewport_height / 1000 ))