mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-01 17:36:21 +03:00
Reorganized resources to keep source part in src and real-time scripts in resource folder. For the installation result no changes, still installed to src for windows.
10 lines
382 B
GLSL
10 lines
382 B
GLSL
//! Calculates micro facet normals distribution.
|
|
float occPBRDistribution (in float theCosH,
|
|
in float theRoughness)
|
|
{
|
|
float aDistribution = theRoughness * theRoughness;
|
|
aDistribution = aDistribution / (theCosH * theCosH * (aDistribution * aDistribution - 1.0) + 1.0);
|
|
aDistribution = INV_PI * aDistribution * aDistribution;
|
|
return aDistribution;
|
|
}
|