
Category Archives: Lua
How to Debug your Lua Scripts with ZeroBrane Studio
How to Use Lua require() in GeeXLab Demos
How to enable LuaJIT in GeeXLab
How to Check if a Lua Function Exists
ASUS Aura Illumination Demo (Motherboard and GPU)
Rendering Flow Fields with a Polyline
Logitech RGB LED Lighting: the Mouse

I had the opportunity to test Logitech RGB LED lighting functions on the Proteus Spectrum mouse, which is a nice laser gaming mouse.
Logitech RGB LED Illumination Functions: the Keyboard
kx Framework (Lua) for OpenGL and Vulkan Demos
gh_font: True Type Font Module (Lua and Python)
How to build User Interfaces and 2D Shapes with NanoVG

GeeXLab 0.9.5.0 comes with one cool new feature: the support of NanoVG.
How to Read the Keyboard in a GLSL Shader

Interesting question, especially if you try to port some Shadertoy demos that can read the keyboard from the pixel shader.
How to Draw a Simple Line

If you need to draw few lines with GeeXLab, this article should help you.
Some Simple Uses of gfx03.lua Helper Lib

The new gfx03.lua helper lib, available with GeeXLab 0.9.4.0+ (in GeeXLab/libs/lua/) is an improved version of gfx02.lua.
Lua: float to integer

GeeXLab 0.9.x.x is available with Lua 5.3 and one of the new features of Lua 5.3 is the native support of 64-bit integer numbers. In previous versions of Lua, only double precision floating numbers were available (fp64).
Lua Date and Time, Shadertoy iDate

If you need to retrieve date and time in Lua, here is small demo that displays the current date as well as elapsed time in seconds.
Reflections in GeeXLab

In recent versions of GeeXLab, I added the support of reflections (mirror, surface water for example). Here is how to do a reflection with GeeXLab:
How to Check the Availability of an OpenGL Extension

It may be useful to know if the current OpenGL implementation supports a particular OpenGL extension. For example you have coded a cool OpenGL 4.0 demo based on tessellation shaders. It would be nice to display a different scene (actually an error scene) if the demo runs on a system that is limited to OpenGL 3.0.
How to Build and Draw a simple Triangle

Remark: in the following article, words GLSL Hacker and GeeXLab are swappable! They represent the same software with a different name…
Today we are going to see how to build and render a simple scene that includes a camera, a triangle, a reference grid and a GPU program (in GLSL). GLSL Hacker supports both Lua and Python programming languages. We will use Lua for this article. So let’s go!