2025-01-03 12:09:23 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Godot;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
|
|
|
public class MeshSurface
|
|
|
|
{
|
|
|
|
public Mesh mesh;
|
|
|
|
public Material material;
|
|
|
|
public int index;
|
2025-05-10 20:56:23 +00:00
|
|
|
public Node owner;
|
|
|
|
public int instanceIndex;
|
2025-01-03 12:09:23 +00:00
|
|
|
|
2025-05-10 20:56:23 +00:00
|
|
|
public MeshSurface( Mesh mesh, Material material, int index, Node owner = null, int instanceIndex = -1 )
|
2025-01-03 12:09:23 +00:00
|
|
|
{
|
|
|
|
this.index = index;
|
|
|
|
this.mesh = mesh;
|
|
|
|
this.material = material;
|
2025-05-10 20:56:23 +00:00
|
|
|
this.owner = owner;
|
|
|
|
this.instanceIndex = instanceIndex;
|
2025-01-03 12:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|