Dalmat
Member
|
particles & ambient
Hello,
Can anyone explain how to get ambient lightning reflect on particles?
If possible at all..
|
|
10-29-2013 12:20 PM |
|
Esenthel
Administrator
|
RE: particles & ambient
Hi,
You'd need to manually adjust the color of the particles real time based on the environment settings.
for example
Code:
struct ParticlesEx : Particles
{
Color default_color;
ParticlesEx()
{
setup super
default_color=color; // remember the default color
}
void update()
{
default_color=AdjustByEnvironment(color);
}
};
|
|
11-01-2013 09:54 PM |
|
Dalmat
Member
|
RE: particles & ambient
Thanks! checking it out now.
|
|
11-04-2013 10:51 AM |
|