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