Skip to content

Instantly share code, notes, and snippets.

View PaperPrototype's full-sized avatar

Abdiel Lopez PaperPrototype

  • Nytro Interactive
View GitHub Profile
@PaperPrototype
PaperPrototype / VoxelTables.cs
Created August 28, 2023 22:21
Lookup tables for voxel terrain
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class VoxelTables
{
// all 8 possible vertices for a voxel
public static readonly Vector3[] Vertices = new Vector3[8]
{
new Vector3(0.0f, 0.0f, 0.0f),
@PaperPrototype
PaperPrototype / VoxelTables.cs
Created August 29, 2023 00:01
Voxel tables for making voxel mesh
using System.Collections;
using System.Collections.Generic;
using Unity.Mathematics;
using UnityEngine;
public static class VoxelTables
{
// all 8 possible vertices for a voxel
public static readonly Vector3[] Vertices = new Vector3[8]
{