irtk.connectors.nvdiffrast_connector.pbr_bsdf

irtk.connectors.nvdiffrast_connector.pbr_bsdf(kd, arm, pos, nrm, view_pos, light_pos, min_roughness=0.08)

Physically-based bsdf, both diffuse & specular lobes All tensors assume a shape of [minibatch_size, height, width, 3] or broadcastable equivalent unless otherwise noted.

Parameters:
  • kd – Diffuse albedo.

  • arm – Specular parameters (attenuation, linear roughness, metalness).

  • pos – World space position.

  • nrm – World space shading normal.

  • view_pos – Camera position in world space, typically using broadcasting.

  • light_pos – Light position in world space, typically using broadcasting.

  • min_roughness – Scalar roughness clamping threshold

Returns:

Shaded color.