This fork is a typescript translation/adaptation of the original javascript implementation. I worked on this adaptation to closely inspect how The Tantalum Renderer works, so it does not exactly repeats the original source code, but it fully replicates the original functionallity. The crossbrowser support may have shrunk in old browsers.
The original README content follows below, except the Compilation section, which was updated.
Tantalum is a physically based 2D renderer written out of personal interest. The idea of this project was to build a light transport simulation using the same mathematical tools used in academic and movie production renderers, but in a simplified 2D setting. The 2D setting allows for faster render times and a more accessible way of understanding and interacting with light, even for people with no prior knowledge or interest in rendering.
Tantalum is written in JavaScript and WebGL.
To give developers as much freedom as is reasonable, Tantalum is distributed under the libpng/zlib license. This allows you to modify, redistribute and sell all or parts of the code without attribution.
Note that Tantalum includes several third-party libraries in the ./thirdparty
folder that come with their own licenses. Please see the LICENSE.txt
file for more information.
npm i
npm run build