MaterialBlendingMode

Everything related to 3D programming
Philippe-felixer76-3
User
User
Posts: 45
Joined: Mon Dec 30, 2013 10:12 pm

MaterialBlendingMode

Post 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?
User avatar
DK_PETER
Addict
Addict
Posts: 898
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: MaterialBlendingMode

Post by DK_PETER »

Create two materials one for material blending and the other as normal.
Switch materials by using SetEntityMaterial()
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
Philippe-felixer76-3
User
User
Posts: 45
Joined: Mon Dec 30, 2013 10:12 pm

Re: MaterialBlendingMode

Post 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.
Post Reply