Recent Posts
Archive
- May 2008 (1)
- June 2008 (3)
- July 2008 (3)
- August 2008 (2)
- September 2008 (3)
- October 2008 (3)
- November 2008 (2)
- December 2008 (3)
- January 2009 (2)
- February 2009 (2)
- March 2009 (3)
- April 2009 (2)
- May 2009 (2)
- June 2009 (4)
- July 2009 (2)
- August 2009 (2)
- September 2009 (1)
- December 2009 (1)
- April 2010 (1)
- May 2010 (1)
- June 2010 (2)
- September 2010 (3)
- October 2010 (2)
- December 2010 (1)
- January 2011 (1)
- May 2011 (3)
- June 2011 (1)
- January 2012 (1)
- February 2012 (1)
- April 2012 (1)
- October 2013 (1)
- March 2014 (1)
- June 2014 (1)
- December 2014 (1)
- June 2015 (1)
- November 2015 (1)
- April 2016 (1)
If you think about the way that a fragment shader works (running in parallel once for each pixel), the only really effective way to debug one is to log out values in the color components and check those values to make sure that the shader is working right at each step. NSLog and printf() really have no meaning for the way these shaders operate.