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
light
d_light
(
vector lightcolor = 1;
float atten = 1;
)
{
float ldist = length(L);
Cl = lightcolor;
vector LL = L / ldist;
Cl *= atten / (ldist + atten);
}
Downloads:
Download: basic_light.vfl 304 B
Please login or Click Here to register for downloads
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 www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
