stuff
This commit is contained in:
9
addons/lightmap_probe_grid/Depth.gdshader
Normal file
9
addons/lightmap_probe_grid/Depth.gdshader
Normal file
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user