Gmarquez Posted July 20, 2022 Share Posted July 20, 2022 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
sweetluna Posted July 20, 2022 Share Posted July 20, 2022 Hi Gmarquez, For 2.15 the only way is to use separate materials for each decal. In 2.16 we added Opacity parameter that works on per decal basis. May RenderDoc/Nsight Graphics/Intel GPA bless you Link to comment
Gmarquez Posted July 20, 2022 Author Share Posted July 20, 2022 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
sweetluna Posted July 21, 2022 Share Posted July 21, 2022 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: For graph based decals (no water decal support yet) add some kind of "global alpha" parameter and use it instead: 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! 1 1 May RenderDoc/Nsight Graphics/Intel GPA bless you Link to comment
Gmarquez Posted July 21, 2022 Author Share Posted July 21, 2022 Thank you very much!! Link to comment
Recommended Posts