Embedding an image as a material via base64
🖼️ Rendering•Updated 2 days ago•0 views
Read the file with getScript(), base64-encode with http.base64Encode(), prefix 'data:image/png;base64,', then feed into render.createMaterial / material texture…
How to load a script image file as a material texture
Read the file with getScript(), base64-encode with http.base64Encode(), prefix 'data:image/png;base64,', then feed into render.createMaterial / material texture URL.