Shader
by _Ricardo_Junior · in Torque Game Engine · 08/28/2007 (8:00 am) · 2 replies
Hi people,
I get TGEA for make tests but I didn't understand how can I apply a shader to an object. Is there any shader editor in TGEA?
Thanks a lot.
Ricardo
I get TGEA for make tests but I didn't understand how can I apply a shader to an object. Is there any shader editor in TGEA?
Thanks a lot.
Ricardo
#2
Eg:
new Material(xyz)
{
baseTex[0] = "xyz";
translucent = true;
translucentBlendOp = LerpAlpha;
translucentZWrite = true;
alphaTest = true;
alphaRef = 20;
emissive[0] = true;
};
(here xyz is the texture file name)
Similarly you can create custom shaders with TGEA script help.
08/30/2007 (9:39 pm)
As far as I know u can apply shaders in ur 3d s/w and simultaneously have to make a material.cs file for the object which defines few parameters in TGEA dat are not exported by s/x to TGEA.Eg:
new Material(xyz)
{
baseTex[0] = "xyz";
translucent = true;
translucentBlendOp = LerpAlpha;
translucentZWrite = true;
alphaTest = true;
alphaRef = 20;
emissive[0] = true;
};
(here xyz is the texture file name)
Similarly you can create custom shaders with TGEA script help.
Torque Owner Tim Heldna
That's about all I know, hopefully someone else can chime in with a more detailed response.
Tip: You may need to edit your forums subscriptions and add the TGEA forums - this is the TGE forum and you'll be better off posting TGEA content in its respective forums.