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

Was adding a (0.5, 0.5) offset, even for zero displacement.
This commit is contained in:
Lukas Tönne 2014-03-07 18:31:05 +01:00
parent f03df4f024
commit ef51b69009
Notes: blender-bot 2023-02-14 11:07:28 +01:00
Referenced by issue #39039, Toggle Quad View doesn't really toggle, it forgets user state.
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ bool DisplaceOperation::read_displacement(float x, float y, float xscale, float
else {
float col[4];
m_inputVectorProgram->readSampled(col, x, y, COM_PS_BILINEAR);
r_u = origin[0] - col[0] * xscale + 0.5f;
r_v = origin[1] - col[1] * yscale + 0.5f;
r_u = origin[0] - col[0] * xscale;
r_v = origin[1] - col[1] * yscale;
return true;
}
}