Commit 5948e439 authored by Dan Weatherford's avatar Dan Weatherford Committed by Jakob Bornecrantz
Browse files

u/distortion: Fix DPOLY3_SCALED 4th coefficient application

parent 17beaf8a
......@@ -146,9 +146,7 @@ u_compute_distortion_vive(struct u_vive_values *values, float u, float v, struct
((r2 * val.coefficients[i][2] + val.coefficients[i][1]) * r2 + val.coefficients[i][0]) * r2 + 1.0;
// The scaled part of DISTORT_DPOLY3_SCALED, seems to improve chromatic abberation.
d_inv -= val.coefficients[i][3];
float d = 1.0 / d_inv;
float d = (1.0 / d_inv) + val.coefficients[i][3];
struct xrt_vec2 offset = {0.5, 0.5};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment