You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20: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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user