Neither of the techniques I described are in any way related to lighting.
In order to write something to the stencil buffer (without card-specific hacks), you need to render something, because the standard stencil buffer formats are not lockable and therefore you can't get direct access to their surface memory from within your program. Rendering can be thought as an indirect write access.
Show differencesHistory of post edits
#1Nik02
Posted 20 July 2012 - 08:25 AM
Neither of the techniques I described are in any way related to lighting.
In order to write something to the stencil buffer (without card-specific hacks), you need to render something, because the standard stencil buffer formats are not lockable and therefore you can't get direct access to their surface memory from within your program.
In order to write something to the stencil buffer (without card-specific hacks), you need to render something, because the standard stencil buffer formats are not lockable and therefore you can't get direct access to their surface memory from within your program.