luacg is a project implements computer graphics algorithms in pure lua.
you can learn computer graphics by reading the source code and making changes.
more algorithms will be added in the future.
To use luacg, you need a lua interpreter, the official interpreter does not include opengl features.
Please download the interpreter built from luagl project. It can be downloaded here.
To execute luacg, cd to the root folder of this project and execute following command in your command-line interface.
path_to_lua_interpreter ./scene.luaThe "path_to_lua_interpreter" should be path to the interpreter you have downloaded.
For example, if you have downloaded lua interpreter in the root folder of this project, use:
./lua.exe ./scene.luaThe execution results will be placed in the root folder of this project.