35 namespace visualization {
66 std::vector<Eigen::Vector3f> &
points,
67 std::vector<Eigen::Vector3f> &normals,
68 std::vector<Eigen::Vector2f> &uvs) = 0;
119 std::vector<Eigen::Vector3f> &
points,
120 std::vector<Eigen::Vector3f> &normals,
121 std::vector<Eigen::Vector2f> &uvs)
final;
GLuint diffuse_texture_
Definition: TexturePhongShader.h:87
virtual bool PrepareBinding(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view, std::vector< Eigen::Vector3f > &points, std::vector< Eigen::Vector3f > &normals, std::vector< Eigen::Vector2f > &uvs)=0
void UnbindGeometry() final
Definition: TexturePhongShader.cpp:165
void Release() final
Definition: TexturePhongShader.cpp:67
TexturePhongShader(const std::string &name)
Definition: TexturePhongShader.h:44
gl_util::GLVector4f light_diffuse_power_data_
Definition: TexturePhongShader.h:101
The base geometry class.
Definition: Geometry.h:37
bool RenderGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
Definition: TexturePhongShader.cpp:117
Eigen::Matrix< GLfloat, 4, 4, Eigen::ColMajor > GLMatrix4f
Definition: GLHelper.h:53
gl_util::GLMatrix4f light_color_data_
Definition: TexturePhongShader.h:100
GLuint light_specular_shininess_
Definition: TexturePhongShader.h:84
std::vector< GLuint > vertex_position_buffers_
Definition: TexturePhongShader.h:93
GLuint light_color_
Definition: TexturePhongShader.h:81
Definition: TexturePhongShader.h:39
virtual bool PrepareRendering(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
View controller for visualizer.
Definition: ViewControl.h:41
GLuint light_ambient_
Definition: TexturePhongShader.h:85
Eigen::Matrix< GLfloat, 4, 1, Eigen::ColMajor > GLVector4f
Definition: GLHelper.h:52
GLuint vertex_normal_
Definition: TexturePhongShader.h:76
std::vector< GLuint > vertex_uv_buffers_
Definition: TexturePhongShader.h:94
GLuint vertex_uv_
Definition: TexturePhongShader.h:75
GLuint light_position_world_
Definition: TexturePhongShader.h:80
bool Compile() final
Definition: TexturePhongShader.cpp:40
TexturePhongShaderForTriangleMesh()
Definition: TexturePhongShader.h:109
gl_util::GLVector4f light_specular_power_data_
Definition: TexturePhongShader.h:102
std::vector< GLsizei > draw_array_sizes_
Definition: TexturePhongShader.h:91
GLuint light_diffuse_power_
Definition: TexturePhongShader.h:82
std::vector< int > array_offsets_
Definition: TexturePhongShader.h:90
int num_materials_
Definition: TexturePhongShader.h:89
Defines rendering options for visualizer.
Definition: RenderOption.h:39
GLuint light_specular_power_
Definition: TexturePhongShader.h:83
std::vector< GLuint > vertex_normal_buffers_
Definition: TexturePhongShader.h:95
GLuint vertex_position_
Definition: TexturePhongShader.h:74
int points
Definition: FilePCD.cpp:73
GLuint M_
Definition: TexturePhongShader.h:79
Definition: PinholeCameraIntrinsic.cpp:35
gl_util::GLVector4f light_specular_shininess_data_
Definition: TexturePhongShader.h:103
std::vector< GLuint > diffuse_texture_buffers_
Definition: TexturePhongShader.h:96
bool BindGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
Definition: TexturePhongShader.cpp:72
std::string name
Definition: FilePCD.cpp:58
Definition: ShaderWrapper.h:40
Definition: TexturePhongShader.h:107
gl_util::GLMatrix4f light_position_world_data_
Definition: TexturePhongShader.h:99
gl_util::GLVector4f light_ambient_data_
Definition: TexturePhongShader.h:104
~TexturePhongShader() override
Definition: TexturePhongShader.h:41
GLuint MVP_
Definition: TexturePhongShader.h:77
void SetLighting(const ViewControl &view, const RenderOption &option)
Definition: TexturePhongShader.cpp:191
GLuint V_
Definition: TexturePhongShader.h:78