/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/attributes/ |
ColorAttribute.java | 23 public class ColorAttribute extends Attribute {
45 public final static ColorAttribute createAmbient (final Color color) {
46 return new ColorAttribute(Ambient, color);
49 public final static ColorAttribute createAmbient (float r, float g, float b, float a) {
50 return new ColorAttribute(Ambient, r, g, b, a);
53 public final static ColorAttribute createDiffuse (final Color color) {
54 return new ColorAttribute(Diffuse, color);
57 public final static ColorAttribute createDiffuse (float r, float g, float b, float a) {
58 return new ColorAttribute(Diffuse, r, g, b, a);
61 public final static ColorAttribute createSpecular (final Color color) { [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/ |
BaseEntity.java | 24 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 46 ColorAttribute ca = (ColorAttribute)m.get(ColorAttribute.Diffuse);
|
ConvexHullTest.java | 23 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 37 carModel.materials.get(0).set(ColorAttribute.createDiffuse(Color.WHITE), ColorAttribute.createSpecular(Color.WHITE));
|
GimpactTest.java | 7 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 25 chassisModel.materials.get(0).set(ColorAttribute.createDiffuse(Color.RED), ColorAttribute.createSpecular(Color.WHITE));
|
BaseBulletTest.java | 30 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 87 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.3f, 0.3f, 0.3f, 1.f)); 127 new Material(ColorAttribute.createDiffuse(Color.WHITE), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute 130 final Model boxModel = modelBuilder.createBox(1f, 1f, 1f, new Material(ColorAttribute.createDiffuse(Color.WHITE), 131 ColorAttribute.createSpecular(Color.WHITE), FloatAttribute.createShininess(64f)), Usage.Position | Usage.Normal);
|
BasicBulletTest.java | 29 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 79 lights.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.2f, 0.2f, 0.2f, 1.f)); 111 new Material(ColorAttribute.createDiffuse(Color.BLUE), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute 120 new Material(ColorAttribute.createDiffuse(Color.RED), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute
|
MeshShapeTest.java | 26 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 43 new Material(ColorAttribute.createDiffuse(Color.WHITE), ColorAttribute.createSpecular(Color.WHITE)), Usage.Position
|
VehicleTest.java | 26 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 65 chassisModel.materials.get(0).set(ColorAttribute.createDiffuse(Color.RED), ColorAttribute.createSpecular(Color.WHITE)); 69 wheelModel.materials.get(0).set(ColorAttribute.createDiffuse(Color.BLACK), ColorAttribute.createSpecular(Color.WHITE), 76 new Material(TextureAttribute.createDiffuse(checkboard), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
CullTest.java | 35 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
53 sphere = builder.createSphere(2f, 2f, 2f, 16, 16, new Material(new ColorAttribute(ColorAttribute.Diffuse, Color.WHITE)),
90 ((ColorAttribute)instances[i].materials.get(0).get(ColorAttribute.Diffuse)).color.set(Color.WHITE);
93 ((ColorAttribute)instances[i].materials.get(0).get(ColorAttribute.Diffuse)).color.set(Color.RED);
|
ProjectTest.java | 34 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
54 sphere.materials.get(0).set(new ColorAttribute(ColorAttribute.Diffuse, Color.WHITE));
82 ((ColorAttribute)instances[i].materials.get(0).get(ColorAttribute.Diffuse)).color.set(Color.WHITE);
85 ((ColorAttribute)instances[i].materials.get(0).get(ColorAttribute.Diffuse)).color.set(Color.RED);
|
ViewportTest3.java | 31 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 61 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.3f, 0.3f, 0.3f, 1.f)); 82 Model boxModel = modelBuilder.createBox(50f, 50f, 50f, new Material(ColorAttribute.createDiffuse(Color.GREEN)),
|
KTXTest.java | 35 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
102 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.1f, 0.1f, 0.1f, 1.f));
114 model = modelBuilder.createBox(5f, 5f, 5f, new Material(ColorAttribute.createDiffuse(Color.GREEN)), Usage.Position
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/ |
FogTest.java | 31 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
49 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1.f));
50 environment.set(new ColorAttribute(ColorAttribute.Fog, 0.13f, 0.13f, 0.13f, 1f));
61 model = modelBuilder.createBox(5f, 5f, 5f, new Material(ColorAttribute.createDiffuse(Color.GREEN)), Usage.Position
|
LightsTest.java | 26 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
46 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.2f, 0.2f, 0.2f, 1.0f));
51 lightModel = mb.createSphere(1, 1, 1, 10, 10, new Material(ColorAttribute.createDiffuse(1, 1, 1, 1)), Usage.Position);
63 ((ColorAttribute)pLight.material.get(ColorAttribute.Diffuse)).color.set(pointLight.color);
|
MaterialTest.java | 31 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 48 ColorAttribute colorAttribute; 63 colorAttribute = new ColorAttribute(ColorAttribute.Diffuse, Color.ORANGE); 113 else if (!material.has(ColorAttribute.Diffuse)) 114 material.set(colorAttribute);
|
Basic3DTest.java | 30 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
50 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, .4f, .4f, .4f, 1f));
61 model = modelBuilder.createBox(5f, 5f, 5f, new Material(ColorAttribute.createDiffuse(Color.GREEN)), Usage.Position
|
ShadowMappingTest.java | 29 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 53 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, .4f, .4f, .4f, 1f)); 68 new Material(ColorAttribute.createDiffuse(Color.WHITE)));
|
ShaderTest.java | 32 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
123 withColor = renderable.material.has(ColorAttribute.Diffuse);
149 return instance.material.has(TestAttribute.ID) && (instance.material.has(ColorAttribute.Diffuse) == withColor);
168 ColorAttribute colorAttr = (ColorAttribute)renderable.material.get(ColorAttribute.Diffuse);
215 Material redMaterial = new Material("RedMaterial", ColorAttribute.createDiffuse(Color.RED));
216 Material testMaterial2 = new Material("TestMaterial2", new TestAttribute(1f), ColorAttribute.createDiffuse(Color.BLUE));
|
Basic3DSceneTest.java | 28 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
53 lights.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1.f));
|
HeightMapTest.java | 15 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 36 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1.f));
|
TextureRegion3DTest.java | 19 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 52 environment.set(new ColorAttribute(ColorAttribute.AmbientLight, .4f, .4f, .4f, 1f)); 63 final Material material = new Material(ColorAttribute.createDiffuse(1f, 1f, 1f, 1f), new TextureAttribute(TextureAttribute.Diffuse));
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/renderers/ |
ModelInstanceRenderer.java | 5 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; 65 ColorAttribute colorAttribute = (ColorAttribute)instance.materials.get(0).get(ColorAttribute.Diffuse); 67 colorAttribute.color.r = renderData.colorChannel.data[colorOffset +ParticleChannels.RedOffset]; 68 colorAttribute.color.g = renderData.colorChannel.data[colorOffset +ParticleChannels.GreenOffset]; 69 colorAttribute.color.b = renderData.colorChannel.data[colorOffset +ParticleChannels.BlueOffset];
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/shaders/ |
DefaultShader.java | 30 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
98 public final static Uniform diffuseColor = new Uniform("u_diffuseColor", ColorAttribute.Diffuse);
101 public final static Uniform specularColor = new Uniform("u_specularColor", ColorAttribute.Specular);
104 public final static Uniform emissiveColor = new Uniform("u_emissiveColor", ColorAttribute.Emissive);
107 public final static Uniform reflectionColor = new Uniform("u_reflectionColor", ColorAttribute.Reflection);
226 shader.set(inputID, ((ColorAttribute)(combinedAttributes.get(ColorAttribute.Diffuse))).color);
247 shader.set(inputID, ((ColorAttribute)(combinedAttributes.get(ColorAttribute.Specular))).color);
268 shader.set(inputID, ((ColorAttribute)(combinedAttributes.get(ColorAttribute.Emissive))).color); [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/voxel/ |
VoxelTest.java | 28 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
57 lights.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1.f));
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/ |
Model.java | 25 import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
275 if (mtl.ambient != null) result.set(new ColorAttribute(ColorAttribute.Ambient, mtl.ambient));
276 if (mtl.diffuse != null) result.set(new ColorAttribute(ColorAttribute.Diffuse, mtl.diffuse));
277 if (mtl.specular != null) result.set(new ColorAttribute(ColorAttribute.Specular, mtl.specular));
278 if (mtl.emissive != null) result.set(new ColorAttribute(ColorAttribute.Emissive, mtl.emissive));
279 if (mtl.reflection != null) result.set(new ColorAttribute(ColorAttribute.Reflection, mtl.reflection)); [all...] |