Untitled
Toggle main menu visibility
Loading...
Searching...
No Matches
depth_downsample.frag
Go to the documentation of this file.
1
#version 430 core
2
uniform sampler2D
uDepth
;
3
4
in
vec2
vUV
;
5
out
float
outDepth
;
6
7
void
main
() {
8
vec4
depths = textureGather(
uDepth
,
vUV
, 0);
9
10
outDepth
= max(max(depths.
x
, depths.
y
), max(depths.
z
, depths.
w
));
11
}
main
void main()
Definition
audio_probe_bake.comp:465
outDepth
out float outDepth
Definition
depth_downsample.frag:5
uDepth
uniform sampler2D uDepth
Definition
depth_downsample.frag:2
vUV
in vec2 vUV
Definition
lightmap.frag:13
vec4::w
float w
Definition
types.h:13
vec4::z
float z
Definition
types.h:13
vec4::x
float x
Definition
types.h:13
vec4::y
float y
Definition
types.h:13
vec2
Definition
types.h:11
vec4
Definition
types.h:13
src
render
depth_downsample.frag
Generated by
1.18.0