6 #ifndef HIRO_DRAW_ELEMENT_RENDERER_H 7 #define HIRO_DRAW_ELEMENT_RENDERER_H 8 #include <GLW/Texture.h> 9 #include <GLW/UniformBuffer.h> 10 #include <HIRO_DRAW/Renderer.h> 11 #include <HIRO_DRAW/ShaderApi.h> 38 bool back_face_culling =
false;
40 float point_size = 10.0f;
59 bool back_face_culling =
false;
61 bool wireframe =
false;
73 glw::PTexture2D normal_texture =
nullptr;
76 bool use_matcap =
false;
78 glw::PTexture2D matcap_sampler =
nullptr;
87 cogs::Color3f color = cogs::color::BLACK;
134 void LoadRequiredShaderPrograms(glw::ProgramList *programs)
override;
136 void Render(
const std::string &program)
override;
139 virtual void OnRenderPoints();
141 virtual void OnRenderFaces();
143 virtual void OnRenderNormals();
154 glw::UniformBuffer<hiro::shader::Material> material_ubo_;
Base class for rendering of geometry data.
Definition: ElementRenderer.h:120
Raw 3D normals are used to represent colors.
Color is taken from the material.
Normal vector rendering stylization.
Definition: ElementRenderer.h:84
Point rendering stylization.
Definition: ElementRenderer.h:33
Checkerboard texture used to get colors.
Face rendering stylization.
Definition: ElementRenderer.h:48
hiro::shader::Material material
Material setting for the faces.
Definition: ElementRenderer.h:64
ColorSource
Available sources of color information.
Definition: ElementRenderer.h:19
Extensions for object visualization. Implements a higher level of OpenGL rendering.
Definition: API.h:20
Raw 3D positions are used to represent colors.
Albedo texture used to get colors.
hiro::shader::Material material
Material setting for the points.
Definition: ElementRenderer.h:36
NormalSource
Available sources of normal vector.
Definition: ElementRenderer.h:51
Normals are calculated from face orientations.
Properties of a simple phong material.
Definition: ShaderApi.h:93
Vertex color attribute used to get colors.
Abstract base class for an arbitrary renderer object.
Definition: Renderer.h:47