Basic Light

A basic VEX light shader.

A .vfl file that generates a VEX light shader.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Tuesday July 29th, 2008 08:40 PM

* Author: Dan Lynch

#pragma hint lightcolor color

        vector lightcolor 1;
        float atten 1;
        float ldist length(L);
        Cl lightcolor;
        vector LL ldist;
        Cl *= atten / (ldist atten);

Download: basic_light.vfl 304 B

Please login or Click Here to register for downloads
Creative Commons License
Basic Light by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at
Permissions beyond the scope of this license may be available at