You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can look at the parts of FlexBatchTest pertaining to Quad3D for an example of usage.
Your question makes me realize I didn't include getColor(), getAlpha(), or setAlpha() methods on the Quad class. So until I add that, you'll need to subclass Quad3D. The RGBA color is stored in a protected 32 bit float. You can add a TMP static final Color object for extracting the values. Then you can add methods like this:
public Color getColor (){
Color.abgr8888ToColor(TMP, color);
return TMP;
}
public float getAlpha (){
return getColor().a;
}
public void setAlpha (float alpha){
Color.abgr8888ToColor(TMP, color);
TMP.a = alpha;
color(TMP);
}
Or if you're not modifying RGB of your decals, you can simply set alpha on a Quad3D like this:
How can I use this library to create some 3d decal and change the alphas invidually?
Can you show some code for this?
Thanks,
Leslie
The text was updated successfully, but these errors were encountered: