About Store Forum Documentation Contact



Post Reply 
particles & ambient
Author Message
Dalmat Offline
Member

Post: #1
particles & ambient
Hello,

Can anyone explain how to get ambient lightning reflect on particles?
If possible at all..
10-29-2013 12:20 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
Dalmat Offline
Member

Post: #3
RE: particles & ambient
Thanks! checking it out now.
11-04-2013 10:51 AM
Find all posts by this user Quote this message in a reply
Post Reply