DKL9 GitList
Repositories
DKL9 home
voxels
Code
Commits
Branches
Tags
Search
Tree:
466ea72
Branches
Tags
master
voxels
libs.py
Make basic 3D "game" with two shapes
dkl9
commited
466ea72
at 2025-170 10:42:16
libs.py
Blame
History
Raw
from OpenGL.GL import * import numpy as np import pygame FLOAT = np.float32 def vec(l): return np.array(l, dtype=FLOAT) def normalize(v): norm = np.linalg.norm(v) return v / norm if norm > 0 else v