1#include "materials/Material.hpp"
23 const std::vector<std::reference_wrapper<Light>> &lights)
override {
The color class.
Definition Color.hpp:18
The base material class.
Definition Material.hpp:24
A material that maps the mesh's normal vectors to normalized RGB colors.
Definition NormalColor.hpp:13
Vector4 vertexShader(const Uniforms &uniforms, const Attributes &attributes) override
The vertex shader of this material, which will be run for every vertex of the mesh's geometry.
Definition NormalColor.hpp:15
Color fragmentShader(const Uniforms &uniforms, const Varyings &varyings, const std::vector< std::reference_wrapper< Light > > &lights) override
The fragment shader of this material, which will be run for every fragment that the mesh covers on th...
Definition NormalColor.hpp:21
Vector3 absolute() const
Returns a new 3D vector with the absolute values of the components of this 3D vector.
Definition Vector3.hpp:171
The 4D vector class.
Definition Vector4.hpp:20
The t software 3D graphics library namespace.
Definition algorithms.hpp:12
The attributes of a vertex, available to vertex shaders.
Definition Attributes.hpp:14
Vector3 & localPosition
The local position of the current vertex.
Definition Attributes.hpp:15
The varyings available to fragment shaders.
Definition Varyings.hpp:19
Vector3 & localNormal
The normal vector in local space associated with the current fragment.
Definition Varyings.hpp:22