User Tag List

Results 1 to 3 of 3

Thread: Hue Shader (for PS 2.0 !)

  1. #1
    No Products Registered

    Join Date
    Sep 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hue Shader (for PS 2.0 !)

    Hello again. Sorry to make so many topics in such a short period of time, but learning all this new stuff at once is so exciting! HWA and Pixel Shaders are so cool; I feel kinda lame for being so late to the party (and averse to leveraging the HWA build).

    So, here is a contribution for something Looki said was impossible in another thread -- it's a Hue shader which targets the Pixel Shader 2.0 model. I hope you guys can get some use out of it.

    Let me know if it doesn't work on your system (or you encounter any strange bugs!). Some of the normal culling action has been removed to lower the number of instructions, and it also uses HSV instead of HSL, but it should otherwise be what you'd expect from a hue shader. Please enjoy.

    [size:9pt]
    Edit: by the way; this should be able to be easily modified to hue-shift the background as well, though alpha culling based on the surface texture's alpha value might put it over the PS 2.0 instruction limit ! In any case, hue-shifting the background might have some more useful properties, but would probably need to target PS3.0 as a result. A shame.....
    [/size]
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Sep 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hue Shader (for PS 2.0 !)

    The culling bug exhibited in the previous version of this shader has been worked around by retrieving the fractional component using intrinsic function frac(), with no extra instructions cost (I believe). An exe demonstrating the bug (and the fixed shader) is linked below.

    http://sharebee.com/befaceb1 (for the EXE)

    The source to the fixed shader is attached to this post.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hue Shader (for PS 2.0 !)

    Great Shader.

    By the way i add an example. Download it guys for quick-testing this great Shader of Nobuyuki.

    Attached files Attached files

Similar Threads

  1. 3d shader.fx
    By Bogeyman in forum Hardware Accelerated Runtime
    Replies: 4
    Last Post: 21st April 2016, 07:00 PM
  2. Anaglyph Shader
    By Pharanygitis in forum Shader Development
    Replies: 19
    Last Post: 16th August 2015, 08:34 AM
  3. Need mutiply shader!
    By Johnny in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 18th October 2013, 07:05 PM
  4. Tilemap Pixel Shader (aka "texture atlas" shader)
    By MuddyMole in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 10th May 2013, 08:21 PM
  5. 3D Shader ever possible in iOS?
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 16th January 2013, 07:54 AM

Posting Permissions

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