➤ ABOUT THE SCRIPT
The script itself is very basic and checks for alpha changes for Blinn-Phong and then attempts to update the PBR material accordingly.
This can be useful for objects where you toggle visibility of a link or face.
➤ USING THE SCRIPT
Simply put the script into the object and let it handle everything.
If needed you can turn off the updater with the following chat command:
/11 pbr update
➤ KNOWN ISSUES
If tinting has been set directly on the material (not the object) then there is a big chance it will reset back to white due to a bug within LSL scripting and there is not much i can do about this. However, if you tint the object after applying your PBR material, the tint color should remain.
https://feedback.secondlife.com/scripting-bugs/p/pbr-colour-data-is-lost-when-setting-pbr-overrides
- PBR
- Alpha