pmndrs / market

📦 Download CC0 assets ready to use in your next 3D Project
https://market.pmnd.rs
MIT License
254 stars 22 forks source link

Add file property to common API queries list #78

Closed vaneenige closed 3 years ago

vaneenige commented 3 years ago

Hi there,

Was working on an implementation where I fetch the full list of models / materials / HDRIs and need the file (direct link), but rather than doing a new query just for that property I thought it could be included in the common list. Thoughts? :+1:

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/market/5ZuBXoT71XZvgPdcmtvizGZjjPKP
✅ Preview: https://market-git-fork-vaneenige-main-pmndrs.vercel.app

SaraVieira commented 3 years ago

Sounds good! Just be aware that when it comes to pbr materials the main difference is that the actual files are in the maps property as seen here: https://market-git-fork-vaneenige-main-pmndrs.vercel.app/api/materials

So be careful when the category of the material is PBR :)