remove scaling
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
|
||||
#define color_conversion
|
||||
#define texture_filtering
|
||||
//#define rotate_180
|
||||
#define rotate_180
|
||||
//#define debug_borders
|
||||
|
||||
#undef highp // defined by Qt-OpenGl
|
||||
@ -37,7 +37,6 @@ uniform float pts;
|
||||
// parameters
|
||||
|
||||
const vec2 sensor_size = vec2(5.949440, 5.205760);
|
||||
const vec2 rectilinear_scale = vec2(1.147370, 1.0);
|
||||
const float equidistant_focal_length = 2.920000;
|
||||
const float rectilinear_focal_length = 2.102263;
|
||||
|
||||
@ -56,7 +55,7 @@ vec2 sensor_to_texture;
|
||||
|
||||
void initialize() {
|
||||
texture_center = myResolution * 0.5;
|
||||
texture_to_sensor = (sensor_size / myResolution) * rectilinear_scale;
|
||||
texture_to_sensor = (sensor_size / myResolution);
|
||||
#ifdef rotate_180
|
||||
texture_to_sensor *= -1.0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user