ShadowMapShaderLib top-level constant
String
const ShadowMapShaderLib
Implementation
const String ShadowMapShaderLib = """
float GetShadow(vec3 depth, sampler2DShadow shadowMap, float bias1, float bias2) {
depth.z = depth.z - bias1;
return texture(shadowMap, depth);
//return 1.0 - smoothstep(bias1, bias2, depth.z - d);
}
""";