Shaders question regarding Torque3D
by RTshaders · in General Discussion · 01/13/2010 (9:11 am) · 4 replies
I am new here.
And I would like to ask if Torque3d allows to code custom shaders and supports assembling shaders too.
Thanks in advance.
And I would like to ask if Torque3d allows to code custom shaders and supports assembling shaders too.
Thanks in advance.
#2
01/14/2010 (5:59 am)
Thanks for replying.I usually compile (using fxc) hlsl to assembly so I am wondering if Torque can read asm file.
#3
01/14/2010 (7:46 am)
Torque reads standard HLSL or GLSL. Shaders are saved in a file with a .hlsl or .glsl extension, which contain the raw shader code in them. I don't think it can read shaders compiled into assembly.
#4
Anyway... it may or may not fit your needs. Be prepared to modifiy the source if you need something different.
01/14/2010 (4:25 pm)
There is support for reading an already assembled shader deep in the bowels of the engine... i think it was there for xbox support at one point.Anyway... it may or may not fit your needs. Be prepared to modifiy the source if you need something different.
Associate Rene Damm
Yes, Torque 3D allows the use of custom shaders through CustomMaterials. These must be set up in script, though, and require a certain level of expertise.
I'm not quite sure what you mean with "supports assembling shaders". Do you mean something like a node-based material editor that then hands of the graphs for the engine to generate shaders from? If so, while Torque does not use node networks to assemble shaders, it has a configurable Material interface from which then shaders are generated dynamically by the engine.