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:
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