Archived

This topic is now archived and is closed to further replies.

Gary

T_TEX_MODULATE

Recommended Posts

Is it possible to have an X-Ray version of T_TEX_MODULATE and T_FOG_TEX_MODULATE render methods? Gary

Share this post


Link to post
Share on other sites
Ok, I''ve used that before but how do I register a multitexture render method....

I''ve used PR_RegisterRenderMethod before for normal render methods but how do I register the 2nd pass?


Gary

Share this post


Link to post
Share on other sites
You don''t register a different function for different passes. Instead you check the value of PR_Globals.ADDPRIV_Pass inside the function and set different states accordingly.

Also PR_Globals.PR_MethodPasses[methodnum] must be set to the number of passes. This only works in the PR pipelined so I don''t recommend drawing a lot of polygons using it.


Share this post


Link to post
Share on other sites