title: 3D Libgdx Opengl: How to make a shadeless material?
body: <p>I am trying to make a Shadeless material, by this I mean that is not affected by the environmental lighting.
  What attribute should I put? or how do I achieve this?</p>
  
  <p>My enviromental light is:</p>
  
  <pre><code>environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.8f, 0.8f, 0.8f, 1.0f));
  
  environment.add(new DirectionalLight().set(1f,1f,0f, -1f, -0.8f, -0.2f));
  </code></pre>
  
  <p>Here is an image of the problem, you can see the enviromental light is affecting the plane:</p>
  
  <p><img src="https://i.stack.imgur.com/hW3HU.jpg" alt="libgdx shadeless"></p>
  
  <p>some thing like this I assume with the correct Attribute would be the answer?</p>
  
  <pre><code>instance.materials.get(0).set(new FloatAttribute(FloatAttribute.Shininess, 1));
  </code></pre>
  
  <p>Thanks!</p>