Re: Can I set a constant colour for a shape regardless of orientation?
Posted by unixnerd on Nov 27, 2024; 5:55pm
URL: https://forum.jogamp.org/Can-I-set-a-constant-colour-for-a-shape-regardless-of-orientation-tp4043620p4043626.html
What worked for me in the end was setColorTarget(Material.EMISSIVE);
" If vertex colors are present in the geometry, and lighting is enabled, and the colorTarget is either AMBIENT or AMBIENT_AND_DIFFUSE, and vertex colors are not being ignored, then the vertex colors are used in place of this Material's ambient color in the lighting equation."