From 6ee2e0b145bdd4e936f58a05ac24d90533824e77 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 13 Jul 2012 06:07:28 +0000 Subject: bugfix: [#32073] Displace node different result between Low and high quality --- source/blender/compositor/operations/COM_DisplaceOperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/compositor/operations/COM_DisplaceOperation.cpp b/source/blender/compositor/operations/COM_DisplaceOperation.cpp index c7df53770c5..3ef73feaf36 100644 --- a/source/blender/compositor/operations/COM_DisplaceOperation.cpp +++ b/source/blender/compositor/operations/COM_DisplaceOperation.cpp @@ -86,7 +86,7 @@ void DisplaceOperation::executePixel(float *color, int x, int y, MemoryBuffer *i this->m_inputVectorProgram->read(inVector, x + 1, y, COM_PS_NEAREST, inputBuffers); d_dx = inVector[0] * xs; this->m_inputVectorProgram->read(inVector, x, y + 1, COM_PS_NEAREST, inputBuffers); - d_dy = inVector[0] * ys; + d_dy = inVector[1] * ys; /* clamp derivatives to minimum displacement distance in UV space */ dxt = p_dx - d_dx; -- cgit v1.2.3