mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
feat: rewrite some systems
This commit is contained in:
1 parent
95fa5bc1a5
commit
335cd4d699
11 files changed
+212
-107
No files matched your search
+1
-1
@@ -64,7 +64,7 @@ export function Lighting() {
|
||||
position={position}
|
||||
intensity={INTENSITY}
|
||||
penumbra={1}
|
||||
castShadow={cast}
|
||||
// castShadow={cast}
|
||||
decay={1}
|
||||
color={color}
|
||||
/>
|
||||
|
||||
+7
@@ -28,6 +28,13 @@ export function TankModel() {
|
||||
const { gltf } = useModel(protagonist.tank.id);
|
||||
const nodes = Object.values(gltf.nodes);
|
||||
|
||||
nodes.forEach((n) => {
|
||||
if (n instanceof Mesh && n.material instanceof MeshStandardMaterial) {
|
||||
n.material.aoMapIntensity = 10;
|
||||
console.log(n.geometry.attributes);
|
||||
}
|
||||
});
|
||||
|
||||
useTankTransform(track, turret, turretContainer, gunContainer);
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user