MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / geometrySmith

Function geometrySmith

src/rendering/raster_rendering_engine.cpp:1111–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109 }
1110
1111 [[nodiscard]] float geometrySmith(const glm::vec3& normal,
1112 const glm::vec3& view,
1113 const glm::vec3& light,
1114 const float roughness) {
1115 return geometrySchlickGGX(std::max(glm::dot(normal, view), 0.0f), roughness) *
1116 geometrySchlickGGX(std::max(glm::dot(normal, light), 0.0f), roughness);
1117 }
1118
1119 [[nodiscard]] glm::vec3 fresnelSchlick(const float cos_theta,
1120 const glm::vec3& f0) {

Callers 1

shadeMeshPixelFunction · 0.85

Calls 3

geometrySchlickGGXFunction · 0.85
maxFunction · 0.50
dotFunction · 0.50

Tested by

no test coverage detected