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"

Choose between two or more colors in Materials

Hello :D

I am making cartoon-Grass. I already know how to make color variation for a material.

I am using Blender cycles and there is a function named: Mix Shader.

With this node you set a value to choose between (in this case) two different colored materials.

In UE4 I would like to have two colors (which I can change later in real time an an material instance).

And for example the Objekt position choose how much from which color the mesh get.

Here is a Picture which shows everything:


Is something like this possible in UE4? Thanks, Seby :)

Product Version: UE 4.10
more ▼

asked Feb 20 '16 at 11:23 AM in Using UE4

avatar image

8 4 7 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello S3B3ST, you could use a LERP node for that. it has two inputs, and an alpha control to mix between them.

( https://www.youtube.com/watch?v=vLy047C8nKo )

Also, take a look at the speedtree material node, it can also affect color variation.

more ▼

answered Feb 20 '16 at 03:17 PM

avatar image

9.3k 286 65 332

avatar image S3B3ST Feb 20 '16 at 03:39 PM

Okay, thanks :D I addet one color to b and one to a. In UE4 there is a bug, you cant use the object postion to set a value for those two colors. BUT with "PerInstanceRandom" you can get the rondomness for your Material :D

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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