donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.14k stars 539 forks source link

Venice Sunset Setting #212

Closed Rizzist closed 4 years ago

Rizzist commented 4 years ago

Hey! I had a try at your gltf viwer and a uploaded a model and it was extremely beutiful with the venice sunset setting, may I ask for lightning settings for it? Thank you!

donmccurdy commented 4 years ago

Hi! The HDR environment maps are available in https://github.com/donmccurdy/three-gltf-viewer/tree/master/assets/environment, and the original source is https://hdrihaven.com/hdri/?h=venice_sunset. If you're not sure how to load an HDR environment map (for image based lighting / IBL) see https://threejs.org/examples/?q=gltf#webgl_loader_gltf.

donmccurdy commented 4 years ago

The viewer also uses a bit of ambient and punctual lighting, which you can find in viewer.js, but that's a smaller part of the overall lighting.

Rizzist commented 4 years ago

Thank you so much bro!