Compositor: Difference between revisions

Jump to navigation Jump to search
10 bytes removed ,  8 April 2020
m
→‎Rendering correct depth: use proper language in syntaxhighlighting blocks
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="cplusplus">
<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="cplusplus">
<syntaxhighlight lang="glsl">
uniform float fg_Fcoef;
uniform float fg_Fcoef;
varying float flogz;
varying float flogz;

Navigation menu