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
In the current implementation, if the end-user wants to load different models on desktop and mobile, they have to provide both models as inputs. Processing on each (if it needs to be different) would then be configured with the plugin's include flag, like include: "**/*.mobile.glb".
Alternatively, it could be interesting to explore having the plugin generate multiple groups of outputs, each with different optimization settings, like...
... and then the application might choose which to import based on device type or other considerations:
import{lo,hi}from'path/to/content.glb';exportconstmodels=[// NOTE: Example only. 'prefers-reduced-data' is not widely supported.{name: 'content',type: 'glb',url: matchMedia('prefers-reduced-data') ? lo : hi}];
The text was updated successfully, but these errors were encountered:
In the current implementation, if the end-user wants to load different models on desktop and mobile, they have to provide both models as inputs. Processing on each (if it needs to be different) would then be configured with the plugin's include flag, like
include: "**/*.mobile.glb"
.Alternatively, it could be interesting to explore having the plugin generate multiple groups of outputs, each with different optimization settings, like...
... and then the application might choose which to import based on device type or other considerations:
The text was updated successfully, but these errors were encountered: