pixel scale for frame widening
This commit is contained in:
		@ -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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user