x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to use multiple texture in material based on custom data

Hello

I generate a custom random world with RuntimeMeshComponent. This part work great. Now, i need to apply a material on that world, but my knowledge of material is limited.

I need, if possible, to handle multiple texture (represent differents biomes) in a material, and, apply texture based on custom data, passed to material (maybe via Vertex channel color). For now, i just get a random value stored in vertex green channel, but i dont know how to use that in material.

With VertexColor node,i take my green channel value, and i can lerp between two texture, but nothing more... So, by the way, Lerp Alpha is only 0-1 parameter. So, i guess it's wrong way for my need. Maybe use other parameter node...

I just need to apply the texture once (the world is static after generation). I want to handle something 6 or 7 differents textures if it's possible.

Can you, pleasen give me the way to accomplish that, or explain the logic ? Maybe with little example ?

Thank you by advance

Product Version: UE 4.21
Tags:
more ▼

asked Feb 08 '19 at 07:13 PM in Rendering

avatar image

BigBadWouf
10 2 4

avatar image BigBadWouf Feb 12 '19 at 03:26 AM

Nobody can tell me the way to do that ?

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question