How to automate landscape layer painting using a texture map

Glad to hear you have it working!

Just one note - the “If” node in materials is quite slow - shaders are designed to work efficiently in a “non-branching” way so the tasks can be split over many threads - the “If” kind of breaks that. If you find in the future you have performance issues, this may be a place to optimize, otherwise - it does make it a lot easier :slight_smile:

1 Like

Thank you! Any alternative to the If node?

No problem, yes - you can replace the material function code with:

1 Like

Nice I’ll give this a go too and report back on shader instruction counts

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.