PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Public Attributes | List of all members
PGENLib.PointLight Struct Reference

The class holds information about a pointlight (a Dirac's delta in the rendering equation) used by the PointLight Renderer. The fields are the following:

Position a Point object holding the position of the point light in 3D space
Color a Color object being the color of the point light
LinearRadius a float number used to compute the solid angle subtended by the light at a given distance d (r/d)^2
More...

Public Member Functions

 PointLight (Point position, Color color, float linearRadius=0f)
 

Public Attributes

Point Position
 
Color Color
 
float LinearRadius
 

Detailed Description

The class holds information about a pointlight (a Dirac's delta in the rendering equation) used by the PointLight Renderer. The fields are the following:

Position a Point object holding the position of the point light in 3D space
Color a Color object being the color of the point light
LinearRadius a float number used to compute the solid angle subtended by the light at a given distance d (r/d)^2

The documentation for this struct was generated from the following file: