Android Open Source - jmini3d Material From Project Back to project page jmini3d .
License The source code is released under:
Copyright 2012 Mobialia
http://www.mobialia.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to ...
If you think the Android project jmini3d listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package jmini3d.material;
/ * f r o m w w w . j a v a 2 s . c o m * /
import jmini3d.Blending;
import jmini3d.Color4;
import jmini3d.CubeMapTexture;
import jmini3d.Texture;
public class Material {
public int shaderKey = -1;
public Blending blending = Blending.NoBlending;
public Color4 color;
public Texture map;
public CubeMapTexture envMap;
public Texture normalMap;
public boolean useEnvMapAsMap = false;
public boolean applyColorToAlpha = false;
public float reflectivity = 0f;
public Material() {
color = new Color4(0, 0, 0, 0);
}
public Material(Color4 color) {
this.color = color;
}
public Material(Texture texture) {
this.map = texture;
color = new Color4(0, 0, 0, 0);
}
public void setBlending(Blending blending) {
this.blending = blending;
}
public void setUseEnvMapAsMap(boolean useEnvMapAsMap) {
this.useEnvMapAsMap = useEnvMapAsMap;
shaderKey = -1;
}
public void setApplyColorToAlpha(boolean applyColorToAlpha) {
this.applyColorToAlpha = applyColorToAlpha;
shaderKey = -1;
}
public void setMap(Texture map) {
this.map = map;
shaderKey = -1;
}
public void setEnvMap(CubeMapTexture envMap) {
this.envMap = envMap;
shaderKey = -1;
}
public void setEnvMap(CubeMapTexture envMap, float reflectivity) {
this.envMap = envMap;
this.reflectivity = reflectivity;
shaderKey = -1;
}
public void setNormalMap(Texture normalMap) {
this.normalMap = normalMap;
shaderKey = -1;
}
}
Java Source Code List cocoonjs.CocoonJsLinker.java jmini3d.Blending.java jmini3d.Camera.java jmini3d.Color4.java jmini3d.CubeMapTexture.java jmini3d.Font.java jmini3d.GpuObjectStatus.java jmini3d.MatrixUtils.java jmini3d.Object3d.java jmini3d.Rect.java jmini3d.SceneController.java jmini3d.Scene.java jmini3d.Texture.java jmini3d.Utils.java jmini3d.Vector3.java jmini3d.android.Activity3d.java jmini3d.android.GeometryBuffers.java jmini3d.android.GlSurfaceView3d.java jmini3d.android.GpuUploader.java jmini3d.android.Program.java jmini3d.android.Renderer3d.java jmini3d.android.ResourceLoader.java jmini3d.android.compat.CompatibilityWrapper5.java jmini3d.android.demo.DemoActivity.java jmini3d.android.input.InputController.java jmini3d.demo.ArialFont.java jmini3d.demo.CubeScene.java jmini3d.demo.CubesScene.java jmini3d.demo.DemoSceneController.java jmini3d.demo.EnvMapCubeScene.java jmini3d.demo.NormalMapScene.java jmini3d.demo.ParentScene.java jmini3d.demo.TeapotGeometry.java jmini3d.demo.TeapotScene.java jmini3d.geometry.BoxGeometry.java jmini3d.geometry.Geometry.java jmini3d.geometry.PlaneGeometry.java jmini3d.geometry.SkyboxGeometry.java jmini3d.geometry.SpriteGeometry.java jmini3d.geometry.VariableGeometry.java jmini3d.gwt.Canvas3d.java jmini3d.gwt.EngineResources.java jmini3d.gwt.EntryPoint3d.java jmini3d.gwt.GeometryBuffers.java jmini3d.gwt.GpuUploader.java jmini3d.gwt.MyInt16Array.java jmini3d.gwt.Program.java jmini3d.gwt.Renderer3d.java jmini3d.gwt.ResourceLoader.java jmini3d.gwt.TextureLoadedListener.java jmini3d.gwt.demo.DemoEntryPoint.java jmini3d.gwt.input.InputController.java jmini3d.input.KeyListener.java jmini3d.input.TouchListener.java jmini3d.input.TouchPointer.java jmini3d.light.AmbientLight.java jmini3d.light.DirectionalLight.java jmini3d.light.Light.java jmini3d.light.PointLight.java jmini3d.material.Material.java jmini3d.material.PhongMaterial.java jmini3d.material.SpriteMaterial.java jmini3d.utils.Fnt2Class.java jmini3d.utils.Obj2Class.java