Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
2D Toolkit and depth of field
« previous
next »
Print
Pages: [
1
]
Author
Topic: 2D Toolkit and depth of field (Read 4465 times)
Gisle
Newbie
Posts: 1
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 =)
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
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.
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
2D Toolkit and depth of field