Game Development Community

Drawing all objects with a single shader?

by Manoel Neto · in Torque Game Engine Advanced · 01/11/2006 (6:47 pm) · 2 replies

I'm starting work on depth shadows, and I need a way to override the material settings for all objects and use a single one for drawing only to the Z-buffer. Is that possible without some major hacks (if there need be hacks, where should I look at)?

#1
01/16/2006 (12:40 pm)
That's a real pain right now. However, with the batching changes coming up, this will be relatively easy to do, if you can wait for it.
#2
01/16/2006 (3:08 pm)
So... it seems I'm in for some trouble. But since we'll only use DTS and a custom interior format in our project, I can hack the TSMesh to setup some sort of material override.