Results 1 to 10 of 188

Thread: I bring thee not simple rearrangements, but a whole new world of possibilities,,,

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11

    Re: I bring thee not simple rearrangements, but a whole new world of possibilities,,,

    Scalar functions in shaders now supported. I hardcoded it to 4 float variables (scalarA, scalarB, scalarC, scalarD) but this can be expanded later if I feel like it. Basically you can write in your shader like:
    diffuse=tex<0,1,1,0,0,0,0,rgb> * scalarA
    or
    diffuse=tex<0,1,1,0,0,0,scalarA,rgb>

    And then you can create an object like a weapon or vehicle that uses that shader and you can set scalarA during each draw.
    So you can use scalarA to turn on and off the lights on a warthog or to animate the tires to spin when it's moving.

    Halo had a similar system but it was more restricted.

    Also, I'm about to tear TWL out of the engine and start writing my own library to replace it. Making a bak of everything and crossing my fingers.
    Last edited by Not Inferno; May 31st, 2013 at 02:21 AM.
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •