Re: Can't Get Lighting to Work in Ardor3D
Posted by
gouessej on
Mar 19, 2014; 9:51pm
URL: https://forum.jogamp.org/Can-t-Get-Lighting-to-Work-in-Ardor3D-tp4031971p4031997.html
You have to call setColorMaterial just once.
The light components come from your material state when lightning is enabled.
setColorMaterial just picks which kind of light parameters are concerned by color materials, you have to call setAmbient, setDiffuse, ... Feel free to look at the source code ardor3d-jogl and ardor3d-core.