Difference between revisions of "Shading Technique - Linear Depth Buffer"
(New page: {| border="0" | {{ContentBlock|width=800|color=white |content={{!!}} == Overview == '''Why using a custom Depth buffer?''' The default depth buffer generated by Horde3D is a non-linear...) |
|||
Line 41: | Line 41: | ||
// Calculate view space position | // Calculate view space position | ||
vec4 vsPos = calcViewPos( pos ); | vec4 vsPos = calcViewPos( pos ); | ||
− | |||
− | |||
− | |||
// Calculate Depth | // Calculate Depth | ||
Line 62: | Line 59: | ||
<source lang="cpp" line="1"> | <source lang="cpp" line="1"> | ||
varying vec4 vVertexColor; | varying vec4 vVertexColor; | ||
− | |||
void main( void ) | void main( void ) |
Revision as of 02:07, 7 September 2008
|
|