irtk.connectors.nvdiffrast_connector.lambert¶
- irtk.connectors.nvdiffrast_connector.lambert(nrm, wi)¶
Lambertian bsdf. All tensors assume a shape of [minibatch_size, height, width, 3] or broadcastable equivalent.
- Parameters:
nrm – World space shading normal.
wi – World space light vector.
- Returns:
Shaded diffuse value with shape [minibatch_size, height, width, 1]