Skip to content

Instantly share code, notes, and snippets.

@tomaspietravallo
Last active March 11, 2021 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaspietravallo/7b065b9a43341d8346ca0eefe3a26009 to your computer and use it in GitHub Desktop.
Save tomaspietravallo/7b065b9a43341d8346ca0eefe3a26009 to your computer and use it in GitHub Desktop.
Made w/ <3 for the Spark AR Community. © Tomás Pietravallo 2021.
/**
* Skin Smoothing Script by Tomás Pietravallo
* Made w/ <3 for the Spark AR Community.
* Commercial use as part of a project is allowed;
* Selling this script on it's own is NOT allowed.
* © Tomás Pietravallo 2021.
* Do NOT remove this attribution.
*/
import M from 'Materials';
import UI from 'NativeUI';
(async function () {
const materials: MaterialBase[] = await M.getAll();
materials.forEach((m, i)=>{
if (m.skinSmoothingFactor == null) return;
UI.slider.visible = true;
UI.slider.value = 1.0;
m.skinSmoothingFactor = UI.slider.value;
})
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment