MCPcopy Create free account
hub / github.com/3DAnimals/3DAnimals / bsdf_lambert

Function bsdf_lambert

model/render/renderutils/bsdf.py:57–58  ·  view source on GitHub ↗
(nrm, wi)

Source from the content-addressed store, hash-verified

55################################################################################
56
57def bsdf_lambert(nrm, wi):
58 return torch.clamp(_dot(nrm, wi), min=0.0) / math.pi
59
60################################################################################
61# Frostbite diffuse

Callers 2

lambertFunction · 0.85
bsdf_pbrFunction · 0.85

Calls 1

_dotFunction · 0.85

Tested by

no test coverage detected