Jump to content

[SOLVED] [v2.15.1] Decal times management


photo

Recommended Posts

Hi there!,

I the last version of Unigine the LifeTime and FadeTime of decals had been removed so, How do you manage now the behaviours that were ruled by those times?

Thanks alot!

Link to comment

Thanks sweetluna,

But if I have a water decal to simulate a shoot impact over the water, how could I fade away the decal?

Link to comment

1) Inherit your decal material
2) Assign it to the newly created splash decal
3) Change some alpha parameter that is defined in your material
For decal_base material:
image.png

For graph based decals (no water decal support yet) add some kind of "global alpha" parameter and use it instead:
image.png

Some useful API reference links:
https://developer.unigine.com/en/docs/2.15.1/api/library/rendering/class.material?rlang=cpp#setParameterFloat_int_float_void
https://developer.unigine.com/en/docs/2.15.1/api/library/rendering/class.material?rlang=cpp#inherit_Material

 

Hope this helps!

  • Like 1
  • Thanks 1
Link to comment
  • silent changed the title to [SOLVED] [v2.15.1] Decal times management
×
×
  • Create New...