|
RayMarching
0.0.1
Simple 3D engine based on a ray marching rendering
|
Abstract Shape description. More...
#include <models3.h>
Public Member Functions | |
| Shape (color_t color=BLACK) | |
| Shape (Eigen::Vector3d p, color_t color=BLACK) | |
| virtual Eigen::Vector3d | getPos () const |
| color_t | getColor (const Eigen::Vector3d &p) const override |
| void | setColor (color_t color) |
Public Member Functions inherited from RayMarching::SDFObject | |
| virtual | ~SDFObject ()=default |
| virtual double | getDist (Eigen::Vector3d const &p) const =0 |
| Line | getReflection (const Line &ray) const |
Protected Attributes | |
| Eigen::Vector3d | _pos |
| color_t | _color |
Abstract Shape description.
Implement few component used in all primitives
Creates new abstract Shape
| color | desired color |
This construction will be deleted later on, position of the Shape will be applied by the TransformataObject
|
inlineoverridevirtual |
Color getter for render engine
| p | Requesting point |
Implements RayMarching::SDFObject.
|
inlinevirtual |
Position getter
|
inline |
Color setter
| color | desired color |
|
protected |
Shape position in space