Game Development Community

Renderstate

by Kevin Johnson · in Torque Game Engine Advanced · 05/23/2005 (8:58 am) · 3 replies

Is there a facility to change the render state in the current pass from the material definition (db) , if not is this planned for down the road? Or would it just be better to derive a new class ala fxrenderObject to add support for this?


Thanx

#1
05/23/2005 (11:31 am)
Render state? Which render state?
#2
05/23/2005 (12:16 pm)
You can always change the renderstate at any point thru the GFX-> API. Is there something in particular you're trying to achieve?
#3
05/23/2005 (12:48 pm)
Well I have a multipass shader, and in pass[0] I want to enable the stencil buffer test & pass[1] normal, I was hoping for something along the lines of the blendop stuff to send to custom materials. But if I can change the state through the api calls, i may just be able to add a renderstate parameter to the materials def..