UNPKG

@animech-public/playcanvas

Version:
15 lines (13 loc) 434 B
function __adjustStandardMaterialParameterTypes(types) { types.useGamma = 'boolean'; types.aoIntensity = 'number'; } const _tintProperties = ['ambientTint', 'emissiveTint', 'diffuseTint', 'sheenTint']; function __adjustStandardMaterialData(data) { _tintProperties.forEach(prop => { if (data[prop] === undefined) { data[prop] = true; } }); } export { __adjustStandardMaterialData, __adjustStandardMaterialParameterTypes };