2D Toolkit Forum
2D Toolkit => Support => Topic started by: Gisle 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 =)
-
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.