I have included simple function to raydium:
Code:
...
void raydium_object_rotate_and_draw_at(GLuint o,GLfloat ax,GLfloat ay, GLfloat az,GLfloat x,GLfloat y, GLfloat z)
{
glTranslatef(x,y,z);
glRotatef(ax,1,0,0);
glRotatef(ay,0,1,0);
glRotatef(az,0,0,1);
raydium_object_draw(o);
}
...
but work only when rendering shadow is enabled, object is self rotated and translated, where is problem? What has common shadow with draw object, when is used only GL function to translate.
Note: This is very usefull for create editor.