You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
heyo,
no issue here, just wanted to suggest an edit to cube-env-map.js from the miscellaneous components. i added support for an equirectangular image as the environment map so it probably makes more sense to now name this file env-map.js + use the attribute env-map. also, i added the properties:
type to choose 'cube' or 'equirectangular' (defaults to 'cube') fileName to set the equirectangular image's file name (defaults to 'equirectangular') mapping to choose between 'reflection' or 'refraction' equirectangular mapping (defaults to 'reflection')
note, 'enableBackground: true' doesn't play nicely with 'type: equirectangular' as I didn't bother creating a sphere mesh etc... worth waiting to see what happens here: mrdoob/three.js#9733
heyo,
no issue here, just wanted to suggest an edit to cube-env-map.js from the miscellaneous components. i added support for an equirectangular image as the environment map so it probably makes more sense to now name this file
env-map.js
+ use the attributeenv-map
. also, i added the properties:type
to choose 'cube' or 'equirectangular' (defaults to 'cube')fileName
to set the equirectangular image's file name (defaults to 'equirectangular')mapping
to choose between 'reflection' or 'refraction' equirectangular mapping (defaults to 'reflection')note, 'enableBackground: true' doesn't play nicely with 'type: equirectangular' as I didn't bother creating a sphere mesh etc... worth waiting to see what happens here: mrdoob/three.js#9733
notable code change:
full
env-map.js
file:The text was updated successfully, but these errors were encountered: