Author Topic: Pls help with clipping in shader ?  (Read 1729 times)

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
Pls help with clipping in shader ?
« on: August 07, 2013, 12:02:05 AM »
How can i add support of clipping to my own shader ? thanks
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Pls help with clipping in shader ?
« Reply #1 on: August 07, 2013, 03:24:35 AM »
Look at how the Transparent Colored (AlphaClip) does the clipping compared to regular Transparent Colored shader.

The UIPanel chooses between shaders by name; that is "MyShaderName" is no clipping, "MyShaderName (AlphaClip)" is alpha clipping and "MyShaderName (SoftClip)" is soft clipping.

Actually making the shader do it, I'll leave up to you as that depends a lot on your own shader.

I hope that helps you.