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"

So, material functions actually CAN contain material parameter nodes?

The documentation says that material functions are not allowed to contain material parameter nodes and must only use input parameters. But I found out that this is not actually accurate. When I place a parameter node inside a function and use this function in my material, parameters declared inside the functions get added to the material's parameter list (and can be changed on an instance). When functions use same name for a parameter, they share it's value.

This is actually quite useful in my case because I am building a very complex material and parameters need to be shared between many functions. Passing them through function inputs would not make the graph clearer and easier to maintain!

So I like this feature, but is this actually supported and will future engine versions keep the same behavior? Or is this just a bug?

Product Version: Not Selected
Tags:
more ▼

asked Mar 04 '15 at 08:08 AM in Rendering

avatar image

Robert Khalikov
130 9 10 17

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

1 answer: sort voted first

Hey Robert -

Starting with 4.6, Material Functions can now contain Material Parameters the same as any Material. This was a new feature just recently and our documentation has not quite caught up yet, but these parameters should remain usable going forward from 4.6 and later. I have alerted our documentation team to the needed corrections.

Thank you for your question -

Eric Ketchum

more ▼

answered Mar 04 '15 at 04:10 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.8k 701 255 733

avatar image Robert Khalikov Mar 04 '15 at 08:27 PM

Thanks a lot!

(comments are locked)
10|2000 characters needed characters left
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