User Tag List

Results 1 to 3 of 3

Thread: Color parameter

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Color parameter

    If I have a color parameter for a pixel shader, is it from 0-255, or from 0.0-1.0?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)

    Re: Color parameter

    What do you mean by color parameter?

    If it's one of the components of a float4 value, like YourColor.r, then it's from 0.0 to 1.0.

    If it's a global parameter that you define in the properties of your shader with a COLOR property type and an int_float4 type, then it's a float4 in which each component is between 0 and 1.0 (the 'a' component is always equal to 0).

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Color parameter

    I mean the one where in the .xml file if you set the parameter type to color, in the .fx file, I use a float4 value, and that's what I was wanting to know. Ok so 0.0 - 1.0, thanks!

Similar Threads

  1. [MiniatureAudiere Object] About 'pan' parameter
    By BackStaged in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th September 2010, 03:10 PM
  2. Flash parameter/functions ?
    By Tiles in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 8th March 2010, 06:20 PM
  3. Second Parameter in Button Text$
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd May 2009, 03:22 AM
  4. Converting a Parameter to a String
    By Jaffob in forum Extension Development
    Replies: 2
    Last Post: 26th October 2008, 02:55 PM
  5. associate parameter with .exe
    By huxley in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 29th April 2008, 10:58 PM

Posting Permissions

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