casual-simulation / casualos

Casual Open Simulation for the Web
https://ab1.bot
MIT License
49 stars 9 forks source link

Added formOpacity tag to support semi-transparent bots. #281

Closed Blitzy closed 1 year ago

Blitzy commented 1 year ago

This PR adds support for a new formOpacity tag.

The formOpacity tag is used as a modifier on the default opacity value of all materials on a bot shape. This allows bot shapes to be semi-transparent.

formOpacity is implemented for all mesh and material based bot shapes, including custom glTF models and the keyboard.

casualos_formOpacity