1 // This file has been automatically generated from resource file src/Shaders/PBRGeometry.glsl
3 static const char Shaders_PBRGeometry_glsl[] =
4 "//! Calculates geometry factor for Cook-Torrance BRDF.\n"
5 "float occPBRGeometry (in float theCosV,\n"
7 " in float theRoughness)\n"
9 " float k = theRoughness + 1.0;\n"
12 " g1 /= theCosV * (1.0 - k) + k;\n"
14 " g2 /= theCosL * (1.0 - k) + k;\n"