Skip to content
Snippets Groups Projects
Commit ef51b690 authored by Lukas Tönne's avatar Lukas Tönne
Browse files

Fix for displace node regression (reported on IRC by Sebastian Koenig):

Was adding a (0.5, 0.5) offset, even for zero displacement.
parent f03df4f0
Branches
Tags
No related merge requests found
...@@ -72,8 +72,8 @@ bool DisplaceOperation::read_displacement(float x, float y, float xscale, float ...@@ -72,8 +72,8 @@ bool DisplaceOperation::read_displacement(float x, float y, float xscale, float
else { else {
float col[4]; float col[4];
m_inputVectorProgram->readSampled(col, x, y, COM_PS_BILINEAR); m_inputVectorProgram->readSampled(col, x, y, COM_PS_BILINEAR);
r_u = origin[0] - col[0] * xscale + 0.5f; r_u = origin[0] - col[0] * xscale;
r_v = origin[1] - col[1] * yscale + 0.5f; r_v = origin[1] - col[1] * yscale;
return true; return true;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment