Page 1 of 1

MaterialBlendingMode

Posted: Wed Mar 03, 2021 5:43 pm
by Philippe-felixer76-3
When using the command MaterialBlendingMode with for example the mode #PB_Material_AlphaBlend, how or is it possible to turn it back to original mode?

Re: MaterialBlendingMode

Posted: Thu Mar 04, 2021 1:17 am
by DK_PETER
Create two materials one for material blending and the other as normal.
Switch materials by using SetEntityMaterial()

Re: MaterialBlendingMode

Posted: Thu Mar 04, 2021 9:02 pm
by Philippe-felixer76-3
DK_PETER wrote:Create two materials one for material blending and the other as normal.
Switch materials by using SetEntityMaterial()
That was my first attempt also but i don't want to change the material for a normal normal entity, it's for StaticGeometryEntity.

Offcourse i can recreate the StaticGeometryEntity using entity's with another material but this will cosume time.

SetMaterialColor works perfect on a material used by entity's in a StaticGeometryEntity.

But i like to use MaterialBlendingMode to add alpha blending, and i would like to remove it again.