1 //! Calculates micro facet normals distribution.
2 float occPBRDistribution (in float theCosH,
5 float aDistribution = theRoughness * theRoughness;
6 aDistribution = aDistribution / (theCosH * theCosH * (aDistribution * aDistribution - 1.0) + 1.0);
7 aDistribution = INV_PI * aDistribution * aDistribution;