Game Development Community

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

About the author

Recent Threads

  • Script

  • #1
    08/28/2007 (8:05 am)
    No shader editor that I know of. People seem to be using programs like RenderMonkey and FX Composer to compile their shaders which can then be dropped into TGEA, with an accompanying material script file.

    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.
    #2
    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.