![]() |
Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
#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. | |
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.
|
inline |
Compute tangent space w.r.t. shading normal. Computes sn, sn, worldToShading and shadingToWorld from sn.
1.8.8