feat: he start

This commit is contained in:
TrèsAbhi committed 2024-01-11 12:15:24 -06:00
1 parent 9ed2b79a4b
commit 9dc4483d70
5 files changed
+28 -4

No files matched your search

+3
View File
@@ -12,6 +12,7 @@ interface ArmorMeshProps extends MeshProps {
caliber: number;
spaced?: boolean;
canRicochet: boolean;
canSplash: boolean;
ricochet?: number;
normalization?: number;
}
@@ -24,6 +25,7 @@ export function ArmorMesh({
caliber,
canRicochet,
ricochet,
canSplash,
normalization,
spaced = false,
...props
@@ -59,6 +61,7 @@ export function ArmorMesh({
caliber: { value: caliber },
spaced: { value: spaced ?? false },
canRicochet: { value: canRicochet },
canSplash: { value: canSplash },
}}
vertexShader={vertex}
fragmentShader={opaqueArmor && !spaced ? fragmentOpaque : fragment}