Search Unity

Cloud shader

Discussion in 'Shaders' started by jeffcraighead, May 18, 2007.

  1. jeffcraighead

    jeffcraighead

    Joined:
    Nov 15, 2006
    Posts:
    740
    I need a bit of help on this, I'm just getting into shaders. I'd like a shader that I can use on a particle system to create clouds... Florida clouds, where you get bright white tops and dark gray bottoms because the light doesn't pass through all the water. Basically I want an additive shader that adds to black instead of white (Subtractive). But I'm not sure how to go about doing this.

    Jeff
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Shouldn't "simple" clouds just be something like a blended or soft-additive shader, and then you make sure that topmost particles are brighter while bottom ones are darker (by changing their colors)?
     
  3. jeffcraighead

    jeffcraighead

    Joined:
    Nov 15, 2006
    Posts:
    740
    Maybe, but the built in Particle/Additive color won't make the clouds darker only tint the color. Additionally I would guess I'd need to make a CloudEmitter to control where the particles are placed vs. EllipsoidEmitter which places randomly?

    Jeff
     
  4. Randy-Edmonds

    Randy-Edmonds

    Joined:
    Oct 10, 2005
    Posts:
    1,122
    So have you had any luck with making clouds?
     
  5. jeffcraighead

    jeffcraighead

    Joined:
    Nov 15, 2006
    Posts:
    740
    I poked around with it for a bit, but had higher priorities so have dropped it for now. Never came up with anything that was very satisfying.