Initial commit

This commit is contained in:
Diego Marcos
2025-05-23 08:52:14 -07:00
committed by Diego Marcos Segura
commit 3332f609a9
129 changed files with 64575 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import * as THREE from "three";
import splatDefines from "./shaders/splatDefines.glsl";
import splatFragment from "./shaders/splatFragment.glsl";
import splatVertex from "./shaders/splatVertex.glsl";
let shaders: Record<string, string> | null = null;
export function getShaders(): Record<string, string> {
if (!shaders) {
// @ts-ignore
THREE.ShaderChunk.splatDefines = splatDefines;
shaders = {
splatVertex,
splatFragment,
};
}
return shaders;
}