mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-17 17:33:47 +00:00
Changede renderer
This commit is contained in:
parent
3d6e594a48
commit
25e4dd808f
2 changed files with 1 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ void fragment() {
|
|||
// LinearSceneDepth:4
|
||||
{
|
||||
float __log_depth = textureLod(depth_tex_frg_4, SCREEN_UV, 0.0).x;
|
||||
vec4 __depth_view = INV_PROJECTION_MATRIX * vec4(vec3(SCREEN_UV, __log_depth) * 2.0 - 1.0, 1.0);
|
||||
vec4 __depth_view = INV_PROJECTION_MATRIX * vec4(SCREEN_UV * 2.0 - 1.0, __log_depth, 1.0);
|
||||
__depth_view.xyz /= __depth_view.w;
|
||||
n_out4p0 = -__depth_view.z;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue