[Bf-blender-cvs] [2d6458c] master: Fix T42064: Directional blur uses wrong sampler

Sergey Sharybin noreply at git.blender.org
Tue Oct 14 15:36:47 CEST 2014


Commit: 2d6458c64ca10745581ab45772b171e37cfa0ff3
Author: Sergey Sharybin
Date:   Tue Oct 14 15:35:15 2014 +0200
Branches: master
https://developer.blender.org/rB2d6458c64ca10745581ab45772b171e37cfa0ff3

Fix T42064: Directional blur uses wrong sampler

Now use linear one, nearest is far too doggy.

===================================================================

M	source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp

===================================================================

diff --git a/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp b/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp
index 67f5293..3f5d413 100644
--- a/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp
+++ b/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp
@@ -71,7 +71,7 @@ void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void
 	const int iterations = pow(2.0f, this->m_data->iter);
 	float col[4] = {0, 0, 0, 0};
 	float col2[4] = {0, 0, 0, 0};
-	this->m_inputProgram->readSampled(col2, x, y, COM_PS_NEAREST);
+	this->m_inputProgram->readSampled(col2, x, y, COM_PS_BILINEAR);
 	float ltx = this->m_tx;
 	float lty = this->m_ty;
 	float lsc = this->m_sc;
@@ -87,7 +87,7 @@ void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void
 		this->m_inputProgram->readSampled(col,
 		                           cs * u + ss * v + this->m_center_x_pix,
 		                           cs * v - ss * u + this->m_center_y_pix,
-		                           COM_PS_NEAREST);
+		                           COM_PS_BILINEAR);
 
 		add_v4_v4(col2, col);




More information about the Bf-blender-cvs mailing list