All pastes #391758 Raw Edit

Patch for showing the filter kernel

public text v1 · immutable
·published 2007-03-12 10:57 UTC
rendered paste body
Index: texturemap.h
===================================================================
--- texturemap.h	(revision 926)
+++ texturemap.h	(working copy)
@@ -45,6 +45,7 @@
 #include	"ri.h"
 #include	"ishaderexecenv.h"
 #include	"lowdiscrep.h"
+#include	"logging.h"
 
 START_NAMESPACE( Aqsis )
 
@@ -702,6 +703,16 @@
 							m_weights[weightOffset++] = weight;
 						}
 					}
+					weightOffset = 0;
+					for(TqFloat t = -trad; t <= trad; t++)
+					{
+						for(TqFloat s = -srad; s <= srad; s++)
+						{
+							Aqsis::log() << m_weights[weightOffset++] << ", "; 
+						}
+						Aqsis::log() << "\n";
+					}
+					Aqsis::log() << "\n";
 				}
 				
 				~CqImageFilter()	{}