Raydium 3D Game Engine

Set up the light.
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):
GLuint GLl;
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