1
0

pixel scale for frame widening

This commit is contained in:
2025-09-17 20:59:34 +02:00
parent e6c417f0f6
commit 1385b3e6f3
2 changed files with 2 additions and 37 deletions

View File

@ -21,6 +21,7 @@ uniform float pts;
const vec2 sensor_dimensions = vec2(5.949440, 5.205760);
const float fisheye_focal_length = 2.92;
const float rectilinear_focal_length = 2.102263;
const vec2 pixel_scale = vec2(0.871558, 1.0);
const int subsampling = 4;
// constants
@ -37,7 +38,7 @@ vec2 sensor_to_texture;
void initialize() {
texture_center = myResolution * 0.5;
texture_to_sensor = (sensor_dimensions / myResolution);
texture_to_sensor = (sensor_dimensions / myResolution) * pixel_scale;
sensor_to_texture = (myResolution / sensor_dimensions);
}