MaterialBlendingMode
-
- User
- Posts: 45
- Joined: Mon Dec 30, 2013 10:12 pm
MaterialBlendingMode
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
Create two materials one for material blending and the other as normal.
Switch materials by using SetEntityMaterial()
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.
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.
-
- User
- Posts: 45
- Joined: Mon Dec 30, 2013 10:12 pm
Re: MaterialBlendingMode
That was my first attempt also but i don't want to change the material for a normal normal entity, it's for StaticGeometryEntity.DK_PETER wrote:Create two materials one for material blending and the other as normal.
Switch materials by using SetEntityMaterial()
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.