Refactor code structure for improved readability and maintainability

This commit is contained in:
Diego Lopes
2026-03-18 00:25:31 -04:00
commit e538df3673
34 changed files with 9243 additions and 0 deletions

21
samples/simple.lua Normal file
View File

@@ -0,0 +1,21 @@
effect = nil
function _create()
local fxSrc = [[in vec2 vPosition;
void main() {
vec2 uv = vPosition * 0.5 + 0.5;
FragColor = vec4(uv, 0.5 + 0.5 * sin(uTime), 1.0);
}
]]
effect = Effect.new(fxSrc)
end
function _update(dt)
end
function _render()
gl.Clear(0, 0, 0, 1.0)
effect:Render()
end