Skip to content

Change splatmap at runtime (e.g. for changing wettness when it rains and other purposes) #106

@michelcve

Description

@michelcve

Hi,

is it possible to change a splatmap on runtime (similar to how you can change the heightmap with set_height_by_pixel)?

I would like to be able to change some of my splatmaps at runtime for various reasons:

  • Change the wetness on the terrain based on the actual weather
  • Same for snow
  • I want the player to be able to make beds for planting. I want to store the places that have these beds in a splatmap, and use the shader to render them as a layer on top of the terrain.

I tried the "draw_color" function, but couldn't get it to work. Also, I don't think that will be the correct function (as it requires a vec3 for the position, unlike for example the heightmap. Which has a iVec2 and helper functions for retrieving the closest pixel).

So, it this available already? Or would it be something that can be added to the wishlist?

Thanks for all the hard work! It's a really nice component!

Kind regards,
Michel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions