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"

Using a LERP as a parameter?

Hello,

This should be so basic but i cant figure it out. I'm using material instances so some objects will need different textures applied to them but I can quickly swap the textures (As you know how instancing works already) But my problem is that like the roughness, I wont always need a texture but just a value. But how do I switch between the texture and say either just a value of 0-1 or just white/black? I can do this with a lerp but how do transfer that into a parameter so I can just switch it on and off?

I hope this makes sence.

Product Version: UE 4.13
Tags:
more ▼

asked Oct 22 '16 at 03:38 PM in Using UE4

avatar image

Gilbert159
23 1 6 7

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

2 answers: sort voted first

You could EITHER hook up Scalar Parameter Value to the LERP's alpha input:

alt text

OR,even better, use Static Switch Parameter:

alt text

more ▼

answered Oct 22 '16 at 05:48 PM

avatar image

Deathrey
7.9k 130 31 293

avatar image Gilbert159 Oct 24 '16 at 09:52 AM

Awesome, Thanks for the visuals :)

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

Try a staticswitchparameter node instead https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/ExpressionReference/Parameters/ does exactly what you need it to do.

(advanced: make one instance with the switch set to true, and another set to false, and create instances from that so ue4 only needs to recalculate true/false state once)

more ▼

answered Oct 22 '16 at 05:48 PM

avatar image

Luos
9.3k 286 65 330

avatar image Gilbert159 Oct 24 '16 at 09:51 AM

Cheers dude :)

(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