vec2 sample_coord = texcoord+offset*tex_scale;
float occ = texture(occlusion, sample_coord).r;
float sample = texture(depth, sample_coord).r;
vec2 sample_coord = texcoord+offset*tex_scale;
float occ = texture(occlusion, sample_coord).r;
float sample = texture(depth, sample_coord).r;
float min_depth = project(vec3(center.xy, center.z+z_range)).z;
float max_depth = project(vec3(center.xy, center.z-z_range)).z;
if(sample>=min_depth && sample<=max_depth)
float min_depth = project(vec3(center.xy, center.z+z_range)).z;
float max_depth = project(vec3(center.xy, center.z-z_range)).z;
if(sample>=min_depth && sample<=max_depth)