Raydium 3D Game Engine https://memak.raydium.org/ |
|
Set up the light. https://memak.raydium.org/viewtopic.php?f=8&t=919 |
Page 1 of 1 |
Author: | Farabi [ Fri Nov 28, 2008 8:23 am ] |
Post subject: | Set up the light. |
How to set up the light so there would be no dark side on each object? (It called ambient light am I right?) |
Author: | Xfennec [ Thu Jan 01, 2009 9:49 pm ] |
Post subject: | Re: Set up the light. |
For some reason (useless ? :), the ambient term is not managed by Raydium. You can probably talk directly to OpenGL with something like (untested): Code: GLuint GLl; GLl=raydium_light_to_GL_light(my_raydium_light); glLightfv(light,GL_AMBIENT, color_4_bytes_array); ... Or we may add ambient term to Raydium (one or two tiny functions, a new global array, and it's done). Why not. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |