Rabishan
Member
Viewport Sky
Hi everyone,
this may be a stupid question. how do we enable/disable sky in viewport?
thanks in advance.
03-28-2013 12:32 PM
fatcoder
Member
RE: Viewport Sky
That depends on if you mean in code or in the editor. In code you use Sky.atmospheric (take a look at Sky.h). In the 1.0 editor you can disable it in the envirnoment options and I believe in the 2.0 editor you use an environment asset to control the sky.
03-28-2013 02:44 PM
Rabishan
Member
RE: Viewport Sky
thanks for the reply @fatcoder
i use this code in the DrawViewport() function.
Code:
Sky.atmospheric().frac(0.5);
Sky.atmosphericDensityExponent(1);
Sky.atmosphericHorizonExponent(4);
Sky.atmosphericHorizonColor(Vec4(127,158,223,255));
Sky.atmosphericSkyColor(Vec4(159,208,231,230));
i get this settings from environment editor settings
but in output i get all white background as in the pic.
Attached File(s)
Image(s)
03-29-2013 07:36 AM
Koniu
Member
RE: Viewport Sky
In editor you have enabled bloom?
If no, you must disabled bloom in your code
03-29-2013 11:55 AM
Rabishan
Member
RE: Viewport Sky
turning off bloom seemed to do the trick. thanks @Koniu for the suggestion.
04-01-2013 06:27 AM