Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
SurfaceGeometry Struct Reference

#include <surfacegeometry.h>

Public Member Functions

LM_FORCE_INLINE void ComputeTangentSpace ()
 

Public Attributes

bool degenerated
 The surface geometry is positionally degenerated if true.
 
Math::Vec3 p
 Intersection point.
 
Math::Vec3 gn
 Geometry normal.
 
Math::Vec3 sn
 Shading normal.
 
Math::Vec3 ss
 
Math::Vec3 st
 Tangent vectors w.r.t. shading normal.
 
Math::Vec2 uv
 Texture coordinates.
 
Math::Mat3 worldToShading
 Convarsion to local shading coordinates from world coordinates.
 
Math::Mat3 shadingToWorld
 Convarsion to world coordinates from local shading coordinates.
 

Detailed Description

Surface geometry. Contains geometry information of a point on the scene surfaces. Normals and tangents are defined only if the surface geometry at p is not degenerated. TODO : Use unrestricted unions in the future implementation.

Member Function Documentation

LM_FORCE_INLINE void SurfaceGeometry::ComputeTangentSpace ( )
inline

Compute tangent space w.r.t. shading normal. Computes sn, sn, worldToShading and shadingToWorld from sn.


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