Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2817

LunaLua • Re: extraBGOProperties.lua (v1.1) - Fancy BGOs

$
0
0
Updated this library to include some extra features: colour changing (allowing you to tint a BGO) and shader support. Note that shaders and their uniforms are only supported per-ID rather than per-BGO, and therefore must be set up through Lua code. A function can be set to change their uniforms once per frame, per camera.

Sample for setting up a shader:

Code:

extraBGOProperties.registerID(1,{    getUniformsFunc = function(id,camIdx)        return {            time = lunatime.tick(),        }    end,    fragShader = "wavy.frag",})

Statistics: Posted by MrDoubleA — Thu Apr 04, 2024 6:57 pm



Viewing all articles
Browse latest Browse all 2817

Trending Articles