Game Development Community

Custom Material Question

by Gary Hoffmann · in Torque 3D Professional · 06/30/2009 (9:58 pm) · 1 replies

I'm using a custom material because I have some specialized shaders I need to run. I have everything working great with a single pass.

Now I need to add a simple second pass to the material but I can't figure out how (I'm guessing I need to do something with the target field). So, how do I add additional passes to a CustomMaterial?

#1
07/01/2009 (4:40 pm)
Funny enough... CustomMaterial has never supported multiple passes. Its something that i was surprised to learn that after all these years it wasn't addressed in TSE or TGEA.

There are some hacks out there to do this, but IMO we need a bigger refactor of CustomMaterial so that you can specify one ShaderData and set of textures per pass.