mirror of https://github.com/CGAL/cgal
Fix Alpha Shapes 3 demo
This commit is contained in:
parent
f395672771
commit
4ca9d8b83d
|
|
@ -109,8 +109,10 @@ const char vertex_source_points[] =
|
|||
"attribute highp vec4 vertex;\n"
|
||||
|
||||
"uniform highp mat4 mvp_matrix;\n"
|
||||
"uniform highp float point_size;\n"
|
||||
"void main(void)\n"
|
||||
"{\n"
|
||||
" gl_PointSize = point_size; \n"
|
||||
" gl_Position = mvp_matrix * vertex;\n"
|
||||
"}"
|
||||
};
|
||||
|
|
@ -334,9 +336,9 @@ Viewer::draw()
|
|||
attrib_buffers(this);
|
||||
rendering_program_points.bind();
|
||||
color.setRgbF(1.0f, 0.0f, 0.0f);
|
||||
glPointSize(5);
|
||||
glEnable(GL_POINT_SMOOTH);
|
||||
rendering_program_points.setUniformValue(colorLocation_points, color);
|
||||
rendering_program_points.setUniformValue("point_size",5.0f);
|
||||
glDrawArrays(GL_POINTS, 0, static_cast<GLsizei>(pos_points.size()/3));
|
||||
rendering_program_points.release();
|
||||
vao[1].release();
|
||||
|
|
|
|||
Loading…
Reference in New Issue