This class maintains the directions used for the ambient occlusion computation. More...
#include <Directions.hpp>
Public Member Functions | |
Directions () | |
Creates a new Directions object, initializes a vector with all hard coded directions. | |
virtual | ~Directions () |
Deletes the Directions object. | |
void | generateViewMatrices (float distanceToMolecule) |
Generates the view matrices out of the used direction. More... | |
const glm::vec3 | GetDirection (int i) const |
Returns the direction with a given index i. | |
const glm::mat4 | GetViewMatrix (int i) const |
Returns the view matrix with a given index i (corresponding to the i'th direction) More... | |
const int | GetDirectionNumber () const |
Returns the amount of directions used for the ambient occlusion computation. | |
This class maintains the directions used for the ambient occlusion computation.
It also contains the view matrices corresponding to the directions. All used directions are hard coded in this class.
Definition at line 11 of file Directions.hpp.
void Directions::generateViewMatrices | ( | float | distanceToMolecule | ) |
Generates the view matrices out of the used direction.
Such a matrix can be though as the view matrix of a camera, which looks at the molecule from this direction
Definition at line 17 of file Directions.cpp.
const glm::mat4 Directions::GetViewMatrix | ( | int | i | ) | const |
Returns the view matrix with a given index i (corresponding to the i'th direction)
Can be though as the view matrix of a camera, which looks at the molecule from this direction
Definition at line 53 of file Directions.cpp.