20,741
edits
mNo edit summary |
m (→Rendering correct depth: use proper language in syntaxhighlighting blocks) |
||
Line 231: | Line 231: | ||
* '''2nd option'''. | * '''2nd option'''. | ||
Add the following to the vertex shader: | Add the following to the vertex shader: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="glsl"> | ||
varying float flogz; | varying float flogz; | ||
[...] | [...] | ||
Line 238: | Line 238: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
And the following to the fragment shader: | And the following to the fragment shader: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="glsl"> | ||
uniform float fg_Fcoef; | uniform float fg_Fcoef; | ||
varying float flogz; | varying float flogz; |