34 namespace visualization {
63 std::vector<Eigen::Vector3f> &
points,
64 std::vector<Eigen::Vector3f> &normals,
65 std::vector<Eigen::Vector3f> &colors) = 0;
107 std::vector<Eigen::Vector3f> &
points,
108 std::vector<Eigen::Vector3f> &normals,
109 std::vector<Eigen::Vector3f> &colors)
final;
123 std::vector<Eigen::Vector3f> &
points,
124 std::vector<Eigen::Vector3f> &normals,
125 std::vector<Eigen::Vector3f> &colors)
final;
~PhongShader() override
Definition: PhongShader.h:40
GLuint vertex_position_
Definition: PhongShader.h:71
Definition: Geometry.h:32
GLuint vertex_color_
Definition: PhongShader.h:73
GLuint light_color_
Definition: PhongShader.h:81
GLHelper::GLVector4f light_specular_power_data_
Definition: PhongShader.h:91
void SetLighting(const ViewControl &view, const RenderOption &option)
Definition: PhongShader.cpp:150
bool BindGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
Definition: PhongShader.cpp:68
Definition: ViewControl.h:38
GLuint MVP_
Definition: PhongShader.h:77
GLuint light_diffuse_power_
Definition: PhongShader.h:82
Eigen::Matrix< GLfloat, 4, 1, Eigen::ColMajor > GLVector4f
Definition: GLHelper.h:39
GLuint light_position_world_
Definition: PhongShader.h:80
Definition: PhongShader.h:38
bool Compile() final
Definition: PhongShader.cpp:39
GLuint V_
Definition: PhongShader.h:78
GLuint light_specular_power_
Definition: PhongShader.h:83
Eigen::Matrix< GLfloat, 4, 4, Eigen::ColMajor > GLMatrix4f
Definition: GLHelper.h:40
GLuint vertex_normal_
Definition: PhongShader.h:75
Definition: PhongShader.h:112
GLuint light_specular_shininess_
Definition: PhongShader.h:84
GLuint M_
Definition: PhongShader.h:79
Definition: RenderOption.h:36
void UnbindGeometry() final
Definition: PhongShader.cpp:141
void Release() final
Definition: PhongShader.cpp:63
GLHelper::GLVector4f light_diffuse_power_data_
Definition: PhongShader.h:90
GLHelper::GLMatrix4f light_position_world_data_
Definition: PhongShader.h:88
GLuint vertex_color_buffer_
Definition: PhongShader.h:74
GLHelper::GLVector4f light_specular_shininess_data_
Definition: PhongShader.h:92
int points
Definition: FilePCD.cpp:69
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::Vector3f > &colors)=0
Definition: PinholeCameraIntrinsic.cpp:33
GLuint light_ambient_
Definition: PhongShader.h:85
virtual bool PrepareRendering(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
GLHelper::GLMatrix4f light_color_data_
Definition: PhongShader.h:89
std::string name
Definition: FilePCD.cpp:54
Definition: ShaderWrapper.h:40
bool RenderGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
Definition: PhongShader.cpp:106
Definition: PhongShader.h:96
GLHelper::GLVector4f light_ambient_data_
Definition: PhongShader.h:93
PhongShaderForPointCloud()
Definition: PhongShader.h:98
PhongShader(const std::string &name)
Definition: PhongShader.h:43
GLuint vertex_position_buffer_
Definition: PhongShader.h:72
PhongShaderForTriangleMesh()
Definition: PhongShader.h:114
GLuint vertex_normal_buffer_
Definition: PhongShader.h:76