Hokan
Member
|
Custom sun ray colour not working
As title - if I create custom sun via SunClass constructor (reason - I want to have two suns), its ray_colour member won't affect sun's rendering. BUT this works with so called "Main Sun" - global "Sun" variable.
Code:
vigilantEye.sun.image = UID(2922889087, 1171051764, 3010789764, 3570309810); // Images/sun
vigilantEye.sun.size = 0.05;
Vec lightColour(255, 242, 161);
lightColour /= 255;
/**********************************************/
Vec raysColour(171, 171, 171);
raysColour /= 255;
vigilantEye.sun.rays_color = raysColour;
/**********************************************/
Vec imageColour = lightColour * 255;
vigilantEye.sun.light_color = lightColour;
vigilantEye.sun.image_color.set(imageColour.x, imageColour.y, imageColour.z);
vigilantEye.sun.glow = 255;
vigilantEye.sun.highlight_front = 0.275;
vigilantEye.sun.highlight_back = 1.0;
How it suppose to work (as Sun parameter of Environment):
How it works in application (to the right glowing of Editor's sun):
So my questions are:
1. Is there an option to make "rays_color" work on custom suns?
2. Is it a bug or native behavior (and Engine renders external Sun specificly)?
3. If it is a bug, will it be fixed or is it fixed? (I'm using version from Feb.'15)
|
|
07-22-2015 07:48 PM |
|
Tottel
Member
|
RE: Custom sun ray colour not working
|
|
07-23-2015 07:12 AM |
|
Hokan
Member
|
RE: Custom sun ray colour not working
Ok, maybe "rays_color" describe god rays (and not "light_vol", "light_vol_exp" and "light_vol_steam" parameters), but as you see it also describe sun's light source brightness, and it's working for main sun.
|
|
07-23-2015 08:48 AM |
|