feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -321,13 +321,13 @@ void SphereOccluder3D::_update_arrays(PackedVector3Array &r_vertices, PackedInt3
|
|||
int point = 0;
|
||||
for (int j = 0; j <= (RINGS + 1); j++) {
|
||||
float v = j / float(RINGS + 1);
|
||||
float w = Math::sin(Math_PI * v);
|
||||
float y = Math::cos(Math_PI * v);
|
||||
float w = Math::sin(Math::PI * v);
|
||||
float y = Math::cos(Math::PI * v);
|
||||
for (int i = 0; i <= RADIAL_SEGMENTS; i++) {
|
||||
float u = i / float(RADIAL_SEGMENTS);
|
||||
|
||||
float x = Math::cos(u * Math_TAU);
|
||||
float z = Math::sin(u * Math_TAU);
|
||||
float x = Math::cos(u * Math::TAU);
|
||||
float z = Math::sin(u * Math::TAU);
|
||||
vertex_ptr[vertex_i++] = Vector3(x * w, y, z * w) * radius;
|
||||
|
||||
if (i > 0 && j > 0) {
|
||||
|
|
@ -521,7 +521,7 @@ void OccluderInstance3D::_bake_surface(const Transform3D &p_transform, Array p_s
|
|||
PackedVector3Array vertices = p_surface_arrays[Mesh::ARRAY_VERTEX];
|
||||
PackedInt32Array indices = p_surface_arrays[Mesh::ARRAY_INDEX];
|
||||
|
||||
if (vertices.size() == 0 || indices.size() == 0) {
|
||||
if (vertices.is_empty() || indices.is_empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue