Bart
WiseBart
Hi all.
The manual has a chapter on lighting.
It has a couple of functions like draw_light_define_ambient, draw_light_define_point, draw_light_define_direction, ...
I can access gm_LightingEnabled, MAX_VS_LIGHTS, gm_LightingEnabled and a couple of other variables in the shader. But there doesn't seem to be a way to get the actual lights' data.
Is there a way to access these lights that I define or is it better to just send in the light data using custom uniforms?
The manual has a chapter on lighting.
It has a couple of functions like draw_light_define_ambient, draw_light_define_point, draw_light_define_direction, ...
I can access gm_LightingEnabled, MAX_VS_LIGHTS, gm_LightingEnabled and a couple of other variables in the shader. But there doesn't seem to be a way to get the actual lights' data.
Is there a way to access these lights that I define or is it better to just send in the light data using custom uniforms?