コード例 #1
0
 public InfestationVoxelType()
     : base("InfestationVoxelType")
 {
     ColoredBaseMesh    = false;
     datavalueMeshes[0] = VoxelMeshBuilder.createColoredMesh(Color.FromArgb(5, 5, 5));
     datavalueMeshes[1] = VoxelMeshBuilder.createColoredMesh(Color.FromArgb(5, 5, 5));
     datavalueMeshes[2] = VoxelMeshBuilder.createColoredMesh(Color.FromArgb(20, 20, 20));
     datavalueMeshes[3] = VoxelMeshBuilder.createColoredMesh(Color.FromArgb(25, 25, 25));
     datavalueMeshes[4] = VoxelMeshBuilder.createColoredMesh(Color.FromArgb(50, 50, 50));
 }
コード例 #2
0
        private void updateColoredBaseMesh()
        {
            if (NoMesh)
            {
                mesh = null;
            }
            if (!ColoredBaseMesh)
            {
                return;
            }

            mesh = VoxelMeshBuilder.createColoredMesh(Color);
        }