Absolute World Position And Foliage Color Variation

Discussion in 'PC Editor Discussion' started by alex#5853, Jul 5, 2025.

  1. alex#5853

    alex#5853 Active Member

    Joined:
    Sep 27, 2024
    Messages:
    97
    Likes Received:
    135
    Is it me or Absolute World Position isn't available in MaterialFunctions in PC Editor? If so, how do you guys manage adding variations to your foliage colors?
     
  2. alex#5853

    alex#5853 Active Member

    Joined:
    Sep 27, 2024
    Messages:
    97
    Likes Received:
    135
    Eh, I found it after restarting the Editor...
     
  3. TheShotte

    TheShotte Well-Known Member

    Joined:
    Jun 16, 2020
    Messages:
    392
    Likes Received:
    676
    The simplest way is to use a "PerInstanceRandom" node inside foliage material. It produce a float between 0 and 1 (different value per instanced mesh) and you can use this to change color variety a bit (make it darker/lighter, different color, whatever). This is the best way for landscape or painted foliage.
     
    • Helpful Helpful x 2

Share This Page