You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
PBR more or less working, still working on bringing gizmos back
This commit is contained in:
@@ -1036,30 +1036,23 @@ void VisualServer::mesh_add_surface_from_arrays(RID p_mesh,PrimitiveType p_primi
|
||||
}
|
||||
}
|
||||
|
||||
print_line("type "+itos(i)+" size: "+itos(elem_size)+" offset "+itos(total_elem_size));
|
||||
offsets[i]=total_elem_size;
|
||||
total_elem_size+=elem_size;
|
||||
|
||||
|
||||
}
|
||||
|
||||
print_line("total elemn size: "+itos(total_elem_size));
|
||||
|
||||
uint32_t mask = (1<<ARRAY_MAX)-1;
|
||||
format|=~mask&p_compress_format; //make the full format
|
||||
|
||||
|
||||
int array_size = total_elem_size * array_len;
|
||||
|
||||
print_line("array size: "+itos(array_size));
|
||||
|
||||
DVector<uint8_t> vertex_array;
|
||||
vertex_array.resize(array_size);
|
||||
|
||||
int index_array_size = offsets[VS::ARRAY_INDEX]*index_array_len;
|
||||
|
||||
print_line("index array size: "+itos(index_array_size));
|
||||
|
||||
DVector<uint8_t> index_array;
|
||||
index_array.resize(index_array_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user