Hello Guest

Author Topic: 2D Toolkit and depth of field  (Read 3642 times)

Gisle

  • Newbie
  • *
  • Posts: 1
    • View Profile
2D Toolkit and depth of field
« on: January 23, 2015, 03:56:58 pm »
Hello
My team is using 2d toolkit and we've run into a small bump. We would really like to add depth of field to our game but the standard DOF effect only works with the z-buffer, and 2d toolkit shaders doesnt :(

We're just wondering if maybe someone here has run into the same problem and found a solution? Is there any way to change the shaders maybe?

Any solution would be greatly appreciated =)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit and depth of field
« Reply #1 on: January 23, 2015, 05:06:35 pm »
You can use a cutout shader, that will write to depth, but I'm guessing thats probably not what you want.
You can't have semi transparent (blended) shaders that write into the z buffer, its just not possible.