Look at this picture. I have two boxes with one material: flat colors and opacity map, opacity blend type is max
and alphaTest on 0.2. But I want make a component who will change alphaTest only for one of that instances. I can change material_diffuse
color or smth like that, but had no luck with alpha_ref
, why? I found this chunk and I can see it into fragment shader definition, but it’s just looks unchangable
Sorry, I’ve solved issue by this code
entity.model.meshInstances[0].setParameter('alpha_ref', 0.5)
Works good