Last active
March 11, 2021 14:21
-
-
Save tomaspietravallo/7b065b9a43341d8346ca0eefe3a26009 to your computer and use it in GitHub Desktop.
Made w/ <3 for the Spark AR Community. © Tomás Pietravallo 2021.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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