Author Topic: Clipping without fixed function shader  (Read 3887 times)

Anadin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Clipping without fixed function shader
« on: July 10, 2012, 02:38:10 AM »
I need a non-fixed function shader but only seem to get the right results in my UI if I use the Transparent Colored shader (which is fixed function).

Is it possible to get/make this shader not fixed function?

If I try and use Alpha clip or Soft clip I get large grey areas on some of my sprites :(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Clipping without fixed function shader
« Reply #1 on: July 10, 2012, 06:19:33 AM »
"non fixed function" implies an actual shader, so that makes no sense.

"Unlit/Transparent Colored" shader has clipping versions of it -- "Unlit/Transparent Colored (SoftClip)" for example. If you want to use another shader that has clipping, you need to write the clipped versions of that shader with the same naming syntax.