import { DoubleSide, RepeatWrapping, sRGBEncoding } from "three"; import { useTexture, } from "@react-three/drei"; import { vertexShader, fragmentShader } from "../shaders"; interface HeightMapImageProps { url: string; position: [number, number, number]; rotation: [number, number, number]; scale: [number, number, number]; } export default function HeightMapImage(props: HeightMapImageProps) { const url = props.url; // Load the heightmap image const heightMap = useTexture(url); heightMap.wrapS = RepeatWrapping; heightMap.wrapT = RepeatWrapping; // Load the texture map const textureMap = useTexture(url); textureMap.wrapS = RepeatWrapping; textureMap.wrapT = RepeatWrapping; return ( {/* TODO hayk reduce */} ); }