mml-io / mml

Metaverse Markup Language
https://mml.io
MIT License
121 stars 13 forks source link

Fix m-image transparency support (#140) #141

Closed MarcusLongmuir closed 8 months ago

MarcusLongmuir commented 8 months ago

Fixes #140

This PR fixes support for transparent image sources on m-image by detecting if the source image has any transparent pixels and selectively setting transparent: true on the material if so. This retains the rendering performance gain in cases where the image is not transparent.


What kind of changes does your PR introduce? (check at least one)

Does your PR introduce a breaking change? (check one)

Does your PR fulfill the following requirements?