|
|
@@ -80,14 +80,13 @@ Every Material must have at least Material Colors or Textures. Some optional mat
|
|
|
|
|
|
To give an unshaded material a color:
|
|
|
|
|
|
-. Specify the color property
|
|
|
+* Specify the color property
|
|
|
+
|
|
|
[source,java]
|
|
|
----
|
|
|
mat.setColor("Color", ColorRGBA.Blue); // with Unshaded.j3md
|
|
|
----
|
|
|
|
|
|
-
|
|
|
To give an Phong-illuminated material a color:
|
|
|
|
|
|
. Activate material colors:
|
|
|
@@ -96,7 +95,7 @@ To give an Phong-illuminated material a color:
|
|
|
----
|
|
|
mat.setBoolean("UseMaterialColors",true); // with Lighting.j3md
|
|
|
----
|
|
|
-+
|
|
|
+
|
|
|
. Specify at least Diffuse and Ambient colors. Set both to the same color in the standard case.
|
|
|
+
|
|
|
[source,java]
|
|
|
@@ -112,12 +111,12 @@ mat.setColor("Ambient", ColorRGBA.Blue ); // with Lighting.j3md
|
|
|
To give an unshaded material a texture:
|
|
|
|
|
|
* Specify at least a ColorMap:
|
|
|
-[source,java]
|
|
|
+
|
|
|
+[source,java]
|
|
|
----
|
|
|
mat.setTexture("ColorMap", assetManager.loadTexture("Textures/monkey.png")); // with Unshaded.j3md
|
|
|
----
|
|
|
-+
|
|
|
+
|
|
|
|
|
|
To give a Phong-illuminated material a texture:
|
|
|
|