Difference between revisions of "Talk:PixelEffect"

(Can it work per-image?)
 
 
Line 1: Line 1:
 
So, is this only for fullscreen shaders? Or can it be used per-image (for use in normal mapping, for instance)? - [[User:Taehl|Taehl]] 01:36, 16 August 2011 (BST)
 
So, is this only for fullscreen shaders? Or can it be used per-image (for use in normal mapping, for instance)? - [[User:Taehl|Taehl]] 01:36, 16 August 2011 (BST)
 +
 +
Not entirely certain; I'm just making docs based on the C++ source. But my educated guess is that a shader will work as long as it's set with setPixelEffect(). Setting a pixel effect does not affect what's already drawn, so you can draw things beforehand, set the effect, draw more things, turn off the effect, etc. --[[User:Deltaphc|Deltaphc]] 01:53, 16 August 2011 (BST)

Latest revision as of 00:53, 16 August 2011

So, is this only for fullscreen shaders? Or can it be used per-image (for use in normal mapping, for instance)? - Taehl 01:36, 16 August 2011 (BST)

Not entirely certain; I'm just making docs based on the C++ source. But my educated guess is that a shader will work as long as it's set with setPixelEffect(). Setting a pixel effect does not affect what's already drawn, so you can draw things beforehand, set the effect, draw more things, turn off the effect, etc. --Deltaphc 01:53, 16 August 2011 (BST)