How can i get the texture back from an object
Box, Sphere etc
basicly you create a texture state and eventually add that to a renderstate.
but how can you get the texture back, so you make changes to that texture??
thanks in advance
Something like this:
TextureState ts = (TextureState)n.getRenderState(StateType.Texture);
for (int i=0;i<ts.getNumberOfSetTextures();i++)
Texture tex = ts.getTexture(i);
Haha, Forgot the cast :-o
thanks allot for the answer