Skip to content

feat: add three.js starter for HDRIs (Refs #41) - #105

Merged
SaraVieira merged 1 commit into
pmndrs:mainfrom
KuraPiee:fix/market-41-hdri-starter
Sep 12, 2026
Merged

SaraVieira merged 1 commit into
pmndrs:mainfrom
KuraPiee:fix/market-41-hdri-starter

Conversation

@KuraPiee

Copy link
Copy Markdown
Contributor

Description

Closes #41: Adds the Three.js code starter for HDRIs in \src/helpers/code/hdri/three.js.

What was added

  • Integrated Three.js \RGBELoader\ and \PMREMGenerator\ to load equirectangular HDRI textures from \hdri.file.
  • Set \scene.background = envMap\ and \scene.environment = envMap, matching the R3F starter behavior in \src/helpers/code/hdri/r3f.js.
  • Added tone mapping configuration (\THREE.ACESFilmicToneMapping) and exposure.
  • Added the preview reflective metallic sphere (\SphereBufferGeometry\ + \MeshStandardMaterial({ metalness: 1, roughness: 0 })).
  • Formatted with Prettier according to repository standards.

@SaraVieira
SaraVieira merged commit abc5681 into pmndrs:main Sep 12, 2026
2 checks passed
@SaraVieira

Copy link
Copy Markdown
Member

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add starter for HDRIS

2 participants