Game Development Community

Is there a way to change the material of a .dts at run time?

by Trent · in Torque X 3D · 12/26/2009 (2:51 am) · 2 replies

It seems that Material has a RenderMaterial but it's internal. Obviously I can change the code to suit myself but I'm just wondering if there is a way to do it already.

#1
12/27/2009 (9:49 pm)
Argh! One of my missions lately has been to change all the internal properties to public. By marking properties internal, and therefore closing the door to customizations through class inheritance, you get a tiny performance boost. However, I feel that exposing more properties to developers is much more important than the tiny performance boost gained. This should be changed to public for the next release.

John K.
#2
12/28/2009 (3:41 am)
Awesome work John :) I have to agree with your views on exposing more properties. Flexibility and rapid development. If I want to boost the performance of my game, I have the source, but I have to make the game first before I can optimise it!