/ltc_code

Code for "Real-Time Polygonal-Light Shading with Linearly Transformed Cosines"

Primary LanguagePHPOtherNOASSERTION

Overview

This repository contains an (evolving) reference implementation for the following publications:

Notes:

  • The Linearly Transformed Cosine (LTC) tables in this implementation differ in their parameterisation and storage compared to the original paper. See fitting code and WebGL demos for details.

WebGL Demos

Quad lights
Line lights
Disk lights