From 726ac939252f8d36bd28286ac24f87c230698f7a Mon Sep 17 00:00:00 2001 From: Mahmoud Boukhary <136858334+itsmahmoud-dev@users.noreply.github.com> Date: Sun, 29 Sep 2024 19:31:44 +0300 Subject: [PATCH] Update environment.mdx I am requesting this change because I am new to fiber and Drei. I was looking at the docs and as someone coming from vanilla three.js to fiber I would get under the assumption that to load one single file I would use the path property, and to load cube map textures I'd use the files property which isn't the case. If you think my description isn't well enough you don't have to use it. But please clarify how the 2 properties are used. --- docs/staging/environment.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/staging/environment.mdx b/docs/staging/environment.mdx index 19d732bb3..e8ae6eeed 100644 --- a/docs/staging/environment.mdx +++ b/docs/staging/environment.mdx @@ -36,7 +36,7 @@ Sets up a global cubemap, which affects the default `scene.environment`, and opt backgroundRotation={[0, Math.PI / 2, 0]} // optional rotation (default: 0, only works with three 0.163 and up) environmentIntensity={1} // optional intensity factor (default: 1, only works with three 0.163 and up) environmentRotation={[0, Math.PI / 2, 0]} // optional rotation (default: 0, only works with three 0.163 and up) - files={['px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png']} + files={['px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png']} // works with an array of files or with a single file path="/" preset={null} scene={undefined} // adds the ability to pass a custom THREE.Scene, can also be a ref