Skip to content

Commit

Permalink
Documentation|Client|Shadow Bias|BiasIllum: BiasIllum apidoc cleanup/…
Browse files Browse the repository at this point in the history
…fixes
  • Loading branch information
danij-deng committed Aug 3, 2013
1 parent b16261a commit fad42c1
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions doomsday/client/include/render/biasillum.h
Expand Up @@ -38,18 +38,18 @@ class BiasIllum
/// Required tracker is missing. @ingroup errors
DENG2_ERROR(MissingTrackerError);

/// Maximum number of light contributions.
/// Maximum number of light contributions/contributors.
static int const MAX_CONTRIBUTORS = 6;

/// Minimum intensity for a light contributor.
/// Minimum light contribution intensity.
static float const MIN_INTENSITY; // .005f

public:
/**
* Construct a new bias illumination point.
*
* @param tracker Tracker to assigned to the new point (if any). Note that
* @ref assignTracker() can be used later.
* @param tracker Lighting-contributor tracker to assign to the new point.
* Note that @ref assignTracker() can be used later.
*/
explicit BiasIllum(BiasTracker *tracker = 0);

Expand All @@ -61,6 +61,25 @@ class BiasIllum
*/
static void consoleRegister();

/**
* (Re-)Evaluate lighting for the map point. Any queued changes to lighting
* contributions will be applied at this time (note that this is however a
* fast operation which does not block).
*
* @param color Final color will be written here.
* @param point Point in the map to evaluate. It is assumed this
* has @em not moved since the last call unless the
* light source contributors have been redetermined.
* (Failure to do so will result in briefly visible
* artefacts/inconsistent lighting at worst.)
* @param normalAtPoint Surface normal at @a point. Also assumed not to
* have changed since the last call.
* @param biasTime Time in milliseconds of the last bias frame update
* used for interpolation.
*/
void evaluate(de::Vector3f &color, de::Vector3d const &point,
de::Vector3f const &normalAtPoint, uint biasTime);

/**
* Returns @c true iff a BiasTracker has been assigned for the illumination.
*
Expand All @@ -80,30 +99,10 @@ class BiasIllum
*
* @param newTracker New illumination tracker to be assigned. Use @c 0 to
* unassign any current tracker.
*
* @see hasTracker()
*/
void setTracker(BiasTracker *newTracker);

/**
* (Re-)Evaluate lighting for the map point. Any queued changes to lighting
* contributions will be applied at this time (note that this is however a
* fast operation which does not block).
*
* @param color Final color will be written here.
* @param point Point in the map to evaluate. It is assumed this
* has @em not moved since the last call unless the
* light source contributors have been redetermined.
* (Failure to do so will result in briefly visible
* artefacts/inconsistent lighting at worst.)
* @param normalAtPoint Surface normal at @a point. Also assumed not to
* have changed since the last call.
* @param biasTime Time in milliseconds of the last bias frame update
* used for interpolation.
*/
void evaluate(de::Vector3f &color, de::Vector3d const &point,
de::Vector3f const &normalAtPoint, uint biasTime);

private:
DENG2_PRIVATE(d)
};
Expand Down

0 comments on commit fad42c1

Please sign in to comment.