Partially transparent models
Partially transparent models
How can I create a mesh with transparent sections? Is that possible?
ru guo ni yao ai, ni jiang bu hui shi qu
Here is how I do windows in my apps:
Last three lines are differ from model to model.
It could look like that:
Code: Select all
video::SMaterial glass_material;
glass_material.EmissiveColor = video::SColor(0,50,60,60);
glass_material.MaterialType=EMT_TRANSPARENT_ADD_COLOR;
win0->getMaterial(5)=glass_material;
win0->getMaterial(2)=glass_material;
win0->getMaterial(1)=glass_material;
It could look like that: