fix: preload creature tex

This commit is contained in:
2026-06-01 15:42:25 -03:00
parent 079986ebec
commit ee2eb45527
@@ -5,6 +5,8 @@ import { useEffect, useRef, useState } from "react";
import * as THREE from "three";
import { FEAR_SETTINGS, fearState } from "../state";
useTexture.preload('fear/img/creature.png');
export default function TheCreature() {
const texture = useTexture('fear/img/creature.png');
const meshRef = useRef<THREE.Mesh>(null);