Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Static Public Member Functions | List of all members
RenderUtils Class Reference

#include <renderutils.h>

Static Public Member Functions

static Math::Float GeneralizedGeometryTerm (const SurfaceGeometry &geom1, const SurfaceGeometry &geom2)
 
static Math::Float GeneralizedGeometryTermWithVisibility (const Scene &scene, const SurfaceGeometry &geom1, const SurfaceGeometry &geom2)
 
static bool Visible (const Scene &scene, const Math::Vec3 &p1, const Math::Vec3 &p2)
 

Detailed Description

Render utilities. Utilities for renderer implementations.

Member Function Documentation

LM_NAMESPACE_BEGIN Math::Float RenderUtils::GeneralizedGeometryTerm ( const SurfaceGeometry geom1,
const SurfaceGeometry geom2 
)
static

Compute generalized geometry term. Ordinary geometry term + degeneration support. Note that the geometry term is commutable.

Parameters
geom1Surface geometry for eye sub-path.
geom2Surface geometry for light sub-path.
Returns
Generalized geometry term.
Math::Float RenderUtils::GeneralizedGeometryTermWithVisibility ( const Scene scene,
const SurfaceGeometry geom1,
const SurfaceGeometry geom2 
)
static

Compute generalized geometry term including visibility. Use this function if explicit computation of visibility term is needed.

Parameters
sceneScene.
geom1Surface geometry for eye sub-path.
geom2Surface geometry for light sub-path.
Returns
Generalized geometry term.
bool RenderUtils::Visible ( const Scene scene,
const Math::Vec3 &  p1,
const Math::Vec3 &  p2 
)
static

Check visibility between two points.

Parameters
sceneScene.
p1First point.
p2Second point.
Return values
trueTwo points are mutually visible.
falseTwo points are not mutually visible.

The documentation for this class was generated from the following files: