Hi,
I would like to indicate that my mouse cursor is hovering over an object by increasing the brightness of its texture. I am aware that TextureState and BlendState might help me, but I feel that it is unnecessary to introduce another (purely white) texture to accomplish this very simple task.
What would you do if you wanted to achieve this effect?
If indeed TextureState and BlendState have to be used, what would be the minimal code-snippet that would accomplish this?
Thanks,
-David
try this dont know if it works.
[java]AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.White.mult(3f));
myObjectNode.addLight(al);[/java]
1 Like
tralala said:
try this dont know if it works.
[java]AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.White.mult(3f));
myObjectNode.addLight(al);[/java]
I would never have thought of adding lights to specific objects!
This works really well, and is straightforward enough. Thanks a lot tralala!
-David