mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Bit more experimentation.
This commit is contained in:
parent
626b02dc94
commit
410161831f
@ -354,25 +354,25 @@ class SMesh:
|
|||||||
if !v1d:
|
if !v1d:
|
||||||
processed_vertices[t.i1] = true
|
processed_vertices[t.i1] = true
|
||||||
|
|
||||||
processed_calc_uvs[t.i1] = transform_uv(t.vns2, t.vns3, t.vns1, processed_calc_uvs[t.i2], processed_calc_uvs[t.i3])
|
processed_calc_uvs[t.i1] = transform_uv(t.vns2, t.vns3, t.vns1, processed_calc_uvs[t.i3], processed_calc_uvs[t.i2])
|
||||||
#print(processed_calc_uvs[t.i1])
|
#print(processed_calc_uvs[t.i1])
|
||||||
|
|
||||||
if !v2d:
|
if !v2d:
|
||||||
processed_vertices[t.i2] = true
|
processed_vertices[t.i2] = true
|
||||||
|
|
||||||
processed_calc_uvs[t.i2] = transform_uv(t.vns1, t.vns3, t.vns2, processed_calc_uvs[t.i1], processed_calc_uvs[t.i3])
|
processed_calc_uvs[t.i2] = transform_uv(t.vns1, t.vns3, t.vns2, processed_calc_uvs[t.i3], processed_calc_uvs[t.i1])
|
||||||
|
|
||||||
if !v3d:
|
if !v3d:
|
||||||
processed_vertices[t.i3] = true
|
processed_vertices[t.i3] = true
|
||||||
|
|
||||||
# processed_calc_uvs[t.i3] = transform_uv(t.vns1, t.vns2, t.vns3, processed_calc_uvs[t.i1], processed_calc_uvs[t.i2])
|
processed_calc_uvs[t.i3] = transform_uv(t.vns1, t.vns2, t.vns3, processed_calc_uvs[t.i2], processed_calc_uvs[t.i1])
|
||||||
|
|
||||||
join_triangles(t.neighbour_v1_v2)
|
join_triangles(t.neighbour_v1_v2)
|
||||||
join_triangles(t.neighbour_v2_v3)
|
join_triangles(t.neighbour_v2_v3)
|
||||||
join_triangles(t.neighbour_v1_v3)
|
join_triangles(t.neighbour_v1_v3)
|
||||||
|
|
||||||
func transform_uv(v1 : Vector2, v2 : Vector2, v3 : Vector2, vt1 : Vector2, vt2 : Vector2) -> Vector2:
|
func transform_uv(v1 : Vector2, v2 : Vector2, v3 : Vector2, vt1 : Vector2, vt2 : Vector2) -> Vector2:
|
||||||
if count >= 2:
|
if count >= 5:
|
||||||
return Vector2()
|
return Vector2()
|
||||||
|
|
||||||
count += 1
|
count += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user