[Bf-blender-cvs] [fc82f6b] blender-v2.72-release: Fix T42064: Directional blur uses wrong sampler

Sergey Sharybin noreply at git.blender.org
Wed Oct 15 16:37:46 CEST 2014


Commit: fc82f6b5fd1445373c0d8db8c98a542c18f66ae1
Author: Sergey Sharybin
Date:   Tue Oct 14 15:35:15 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rBfc82f6b5fd1445373c0d8db8c98a542c18f66ae1

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