Jump to content

Global Material Parameters?


photo

Recommended Posts

Posted (edited)

I want to adjust a float / float3 parameter that many many different materials can access globally, rather than using SetParameterFloat (for example) on individual materials.  I've looked through the docs but have not seen a mention of this.  Is this a possibility in Unigine?

Edited by TanukiDigital
Posted

TanukiDigital

There is no such functionality available, I'm afraid.

You can inherit all the materials from the base one and change the desired parameter here, but internally it would anyway do the SetParameterFloat for each child material.

Thanks.

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

I agree with OP, it would be great to have something similar to Unreal Material Collection Parameters, to be able to adjust multiple attributes common to a variety of unrelated materials.

  • Like 2
Posted

Yes, that would definitely be a great feature to have :)

From a technical standpoint, however, it’s a bit of a challenging task to implement. I’ve added your request to our internal tracker; currently, it’s in the review stage, and we’re still gathering additional feedback.

Thanks!

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted (edited)

That's great to hear, it would surely be a useful feature if able to be implemented.  I've tested out your suggestion using material inheritance and it's working well enough for my current needs.  Thanks!

Edited by TanukiDigital
Posted
On 4/28/2025 at 10:34 AM, silent said:

TanukiDigital

There is no such functionality available, I'm afraid.

You can inherit all the materials from the base one and change the desired parameter here, but internally it would anyway do the SetParameterFloat for each child material.

Thanks.

I think they can also use Sub Graph Node. Any variable in this Node is something like a global variable if the Sub Graph Node is used in different materials.

  • Like 1
Posted
On 4/29/2025 at 3:49 AM, dmitrij.shevchenko said:

Any variable in this Node is something like a global variable if the Sub Graph Node is used in different materials.

This is an interesting solution and sounds like it could work quite well.  I'll try it out, thanks!

×
×
  • Create New...