From ee2eb45527dde400cfee9e74b27a0abb89765d16 Mon Sep 17 00:00:00 2001 From: neru Date: Mon, 1 Jun 2026 15:42:25 -0300 Subject: [PATCH] fix: preload creature tex --- src/app/fear/scene-components/creature.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/fear/scene-components/creature.tsx b/src/app/fear/scene-components/creature.tsx index c3d206d..b06fca0 100644 --- a/src/app/fear/scene-components/creature.tsx +++ b/src/app/fear/scene-components/creature.tsx @@ -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(null);