Hello, I am trying to make my plane to have a texture with alpha.
SymbolConfigurator.prototype.ChangeTexture = function (symbolEntity,value)
{
var texture = this.textures[value];
var alphaTexture = this.alphaTextures[value];
var meshInstances = symbolEntity.model.meshInstances;
for (var i = 0; i < meshInstances.length; ++i)
{
var mesh = meshInstances[i];
mesh.material.diffuseMap = texture.resource;
mesh.material.emissiveMap = texture.resource;
mesh.material.opacityMap = alphaTexture.resource;
mesh.material.update();
}
this function receives an entity and changes its textures.
when i do the same in editor the plane becomes transparent as expected, when i do it at run-time i get black background instead of transparency.
Any ideas?