mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
2D Rewrite Step [1]
-=-=-=-=-=-=-=-=-=- -Moved drawing code to a single function that takes linked list (should make it easier to optimize in the future). -Implemented Z ordering of 2D nodes. Node2D and those that inherit have a visibility/Z property that affects drawing order (besides the tree order) -Removed OpenGL ES 1.x support. Good riddance!
This commit is contained in:
parent
78f4b93703
commit
8997084831
35 changed files with 653 additions and 7694 deletions
|
@ -568,8 +568,9 @@ void Rasterizer::_update_fixed_materials() {
|
|||
}
|
||||
|
||||
material_set_param(fm.self,_fixed_material_uv_xform_name,fm.uv_xform);
|
||||
if (fm.use_pointsize)
|
||||
if (fm.use_pointsize) {
|
||||
material_set_param(fm.self,_fixed_material_point_size_name,fm.point_size);
|
||||
}
|
||||
}
|
||||
|
||||
fixed_material_dirty_list.remove(fixed_material_dirty_list.first());
|
||||
|
@ -620,6 +621,8 @@ Rasterizer::Rasterizer() {
|
|||
_fixed_material_uv_xform_name="fmp_uv_xform";
|
||||
_fixed_material_point_size_name="fmp_point_size";
|
||||
|
||||
draw_viewport_func=NULL;
|
||||
|
||||
ERR_FAIL_COND( sizeof(FixedMaterialShaderKey)!=4);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue