Difference between revisions of "Shading Technique - Linear Depth Buffer"
(Change creation date to the good one) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
== The shader == | == The shader == | ||
− | |||
'''Vertex shader:''' | '''Vertex shader:''' | ||
Line 84: | Line 83: | ||
With this, you only have to bind the VERTDEPTHBUF to any stage you want. | With this, you only have to bind the VERTDEPTHBUF to any stage you want. | ||
− | I have called the depth pass DEPTH, but you can call it | + | I have called the depth pass DEPTH, but you can call it whatever you want. Don't forget to put the shader pass in EACH shaders that need to be affected by the depth buffer. |
== How to use it == | == How to use it == | ||
Line 94: | Line 93: | ||
== Pictures == | == Pictures == | ||
− | + | http://img255.imageshack.us/img255/7348/customdepthqi6.png | |
== To-Do List for this Article == | == To-Do List for this Article == | ||
- Add an exemple <br /> | - Add an exemple <br /> | ||
− | |||
− | |||
}} | }} | ||
Line 108: | Line 105: | ||
|version = 1.0 | |version = 1.0 | ||
|horde3dversion = 1.0 beta | |horde3dversion = 1.0 beta | ||
− | |released = 2008- | + | |released = 2008-09-06 |
|author = [http://www.horde3d.org/forums/memberlist.php?mode=viewprofile&u=154 Mikmacer]| | |author = [http://www.horde3d.org/forums/memberlist.php?mode=viewprofile&u=154 Mikmacer]| | ||
}} | }} | ||
|} | |} | ||
[[category: Technique]] | [[category: Technique]] |
Latest revision as of 03:03, 7 September 2008
|
|