Hi all.
Happy new year. Wasn’t here for so long…
I want to set my object invisible, but it should give a
[java]
quad.collideWith(ray, results);
[/java]
results.size() > 0
I’ve tried
mat.setColor(“m_Color”, new ColorRGBA(0, 1, 0, 1f));
and
mat.setTransparent(true);
and
quad.setQueueBucket(Bucket.Transparent);
none of them worked.
and in frag file
[java]
uniform vec4 m_Color;
void main(){
m_Color.a = 1f;
gl_FragColor = m_Color;
}
[/java]
Help me please…
try
mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);
Thanks, it works.