mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
19 lines
466 B
GLSL
19 lines
466 B
GLSL
#version 310 es
|
|
#extension GL_EXT_texture_cube_map_array : require
|
|
|
|
precision highp float;
|
|
precision highp int;
|
|
|
|
uniform highp sampler2DShadow _group_1_binding_2;
|
|
|
|
layout(location = 0) out float _fs2p_location0;
|
|
|
|
void main() {
|
|
vec2 tc = vec2(0.5);
|
|
float s2d_depth = texture(_group_1_binding_2, vec3(tc, 0.5));
|
|
float s2d_depth_level = textureLod(_group_1_binding_2, vec3(tc, 0.5), 0.0);
|
|
_fs2p_location0 = (s2d_depth + s2d_depth_level);
|
|
return;
|
|
}
|
|
|