PDA

View Full Version : Advice on using point lights in CGFX in Maya


gustavovalsan
03-28-2012, 06:38 PM
Hello

I'm trying to make a simple shader for Maya using CGFX as a learning experience. Right now I'm trying to implement a basic Lambert shader using point lights but I can't find information on using point lights for shading. Everything I find is about using directional light which are not always ideal. So I was wondering if anyone can point me in the right direction. Also any help with spot lights also will be nice.

Thanks in advance.

Eric Chadwick
03-29-2012, 06:37 AM
Here's a sample from Nvidia that includes both types. Might help.
http://developer.download.nvidia.com/shaderlibrary/webpages/cgfx_shaders.html#balloon