emission_function()#
- Discrete3DMeshRayTransferEmitter.emission_function(point, direction, spectrum, world, ray, primitive, world_to_primitive, primitive_to_world)#
The emission function for the material at a given sample point.
This is a virtual method and must be implemented in a sub class.
- Parameters:
point (Point3D) – Requested sample point in local coordinates.
direction (Vector3D) – The emission direction in local coordinates.
spectrum (Spectrum) – Spectrum measured so far along ray path. Add your emission to this spectrum, don’t override it.
world (World) – The world scene-graph.
ray (Ray) – The ray being traced.
primitive (Primitive) – The geometric primitive to which this material belongs (i.e. a cylinder or a mesh).
world_to_primitive (AffineMatrix3D) – Affine matrix defining the coordinate transform from world space to the primitive’s local space.
primitive_to_world (AffineMatrix3D) – Affine matrix defining the coordinate transform from the primitive’s local space to world space.