Files
3D-Character-Controller-Tem…/addons/lightmap_probe_grid/Depth.gdshader
2025-05-09 23:45:18 +02:00

10 lines
240 B
Plaintext

shader_type spatial;
render_mode unshaded;
uniform sampler2D depth_texture : source_color, hint_depth_texture, filter_nearest, repeat_disable;
void fragment() {
float depth = texture(depth_texture, SCREEN_UV).x;
ALBEDO = vec3(depth);
}