Merge pull request #73966 from the-brickster/GLES3_GL_POINT_FIX
Solution for resolving the issue of point size not functioning correctly in GLES3
This commit is contained in:
commit
ec6e072836
2 changed files with 5 additions and 2 deletions
|
@ -2206,6 +2206,9 @@ void RasterizerSceneGLES3::_render_list_template(RenderListParameters *p_params,
|
|||
}
|
||||
|
||||
RS::PrimitiveType primitive = surf->primitive;
|
||||
if (shader->uses_point_size) {
|
||||
primitive = RS::PRIMITIVE_POINTS;
|
||||
}
|
||||
static const GLenum prim[5] = { GL_POINTS, GL_LINES, GL_LINE_STRIP, GL_TRIANGLES, GL_TRIANGLE_STRIP };
|
||||
GLenum primitive_gl = prim[int(primitive)];
|
||||
|
||||
|
|
|
@ -1494,7 +1494,7 @@ MaterialStorage::MaterialStorage() {
|
|||
actions.renames["LIGHT_VERTEX"] = "light_vertex";
|
||||
actions.renames["SHADOW_VERTEX"] = "shadow_vertex";
|
||||
actions.renames["UV"] = "uv";
|
||||
actions.renames["POINT_SIZE"] = "gl_PointSize";
|
||||
actions.renames["POINT_SIZE"] = "point_size";
|
||||
|
||||
actions.renames["MODEL_MATRIX"] = "model_matrix";
|
||||
actions.renames["CANVAS_MATRIX"] = "canvas_transform";
|
||||
|
@ -1575,7 +1575,7 @@ MaterialStorage::MaterialStorage() {
|
|||
actions.renames["UV"] = "uv_interp";
|
||||
actions.renames["UV2"] = "uv2_interp";
|
||||
actions.renames["COLOR"] = "color_interp";
|
||||
actions.renames["POINT_SIZE"] = "gl_PointSize";
|
||||
actions.renames["POINT_SIZE"] = "point_size";
|
||||
actions.renames["INSTANCE_ID"] = "gl_InstanceID";
|
||||
actions.renames["VERTEX_ID"] = "gl_VertexID";
|
||||
|
||||
|
|
Loading…
Reference in a new issue