瀏覽代碼

Update j3m_material_files.adoc

Changed tip from text to Admonition.
Fixed broken new lines.
Fixed broken links.
mitm001 9 年之前
父節點
當前提交
ea51d51dc0
共有 1 個文件被更改,包括 19 次插入14 次删除
  1. 19 14
      src/docs/asciidoc/jme3/advanced/j3m_material_files.adoc

+ 19 - 14
src/docs/asciidoc/jme3/advanced/j3m_material_files.adoc

@@ -35,7 +35,7 @@ Material shiny bumpy rock : Common/MatDefs/Light/Lighting.j3md {
 ----
 ----
 
 
 
 
-How to this file is structured:
+How this file is structured:
 
 
 .  Header
 .  Header
 ..  `Material` is a fixed keyword, keep it.
 ..  `Material` is a fixed keyword, keep it.
@@ -64,7 +64,10 @@ This is how you use the prepared .j3m Material on a Spatial. Since you have save
 myGeometry.setMaterial(assetManager.loadMaterial("Materials/SimpleBump.j3m"));
 myGeometry.setMaterial(assetManager.loadMaterial("Materials/SimpleBump.j3m"));
 ----
 ----
 
 
-*Tip:* In the jMonkeyEngine SDK, open Windows>Palette and drag the `JME Material: Set J3M` snippet into your code.
+[TIP]
+====
+In the jMonkeyEngine SDK, open Windows>Palette and drag the `JME Material: Set J3M` snippet into your code.
+====
 
 
 
 
 == Syntax Reference for .j3m Files
 == Syntax Reference for .j3m Files
@@ -74,8 +77,10 @@ myGeometry.setMaterial(assetManager.loadMaterial("Materials/SimpleBump.j3m"));
 
 
 Make sure to get the paths to the textures (.png, .jpg) and material definitions (.j3md) right. 
 Make sure to get the paths to the textures (.png, .jpg) and material definitions (.j3md) right. 
 
 
-*  The paths to the built-in .j3md files are relative to jME3's Core Data directory. Just copy the path stated in the <<jme3/advanced/materials_overview#,Material>> table. +`Common/MatDefs/Misc/Unshaded.j3md` is resolved to `jme3/src/src/core-data/Common/MatDefs/Misc/Unshaded.j3md`.
-*  The paths to your textures are relative to your project's assets directory. +`Textures/bump_rock_normal.png` is resolved to `MyGame/src/assets/Textures/bump_rock_normal.png`
+*  The paths to the built-in .j3md files are relative to jME3's Core Data directory. Just copy the path stated in the <<jme3/advanced/materials_overview#,Material>> table. +
+`Common/MatDefs/Misc/Unshaded.j3md` is resolved to `jme3/src/src/core-data/Common/MatDefs/Misc/Unshaded.j3md`.
+*  The paths to your textures are relative to your project's assets directory. +
+`Textures/bump_rock_normal.png` is resolved to `MyGame/src/assets/Textures/bump_rock_normal.png`
 
 
 
 
 === Data Types
 === Data Types
@@ -185,7 +190,7 @@ a| (Currently not supported in J3M)
 *  Float is “123.0 etc
 *  Float is “123.0 etc
 *  Enum - values depend on the enum
 *  Enum - values depend on the enum
 
 
-See the link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html[RenderState] javadoc for a detailed explanation of render states.
+See the link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html[RenderState] javadoc for a detailed explanation of render states.
 [cols="3", options="header"]
 [cols="3", options="header"]
 |===
 |===
 
 
@@ -193,39 +198,39 @@ a|Name
 a|Type
 a|Type
 a|Purpose
 a|Purpose
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setWireframe(boolean)[Wireframe] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setWireframe(boolean)[Wireframe] 
 a|(Boolean)
 a|(Boolean)
 a| Enable wireframe rendering mode 
 a| Enable wireframe rendering mode 
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setFaceCullMode(com.jme3.material.RenderState.FaceCullMode)[FaceCull] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setFaceCullMode(com.jme3.material.RenderState.FaceCullMode)[FaceCull] 
 a|(Enum: FaceCullMode)
 a|(Enum: FaceCullMode)
 a| Set face culling mode (Off, Front, Back, FrontAndBack) 
 a| Set face culling mode (Off, Front, Back, FrontAndBack) 
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setDepthWrite(boolean)[DepthWrite] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setDepthWrite(boolean)[DepthWrite] 
 a|(Boolean)
 a|(Boolean)
 a| Enable writing depth to the depth buffer 
 a| Enable writing depth to the depth buffer 
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setDepthTest(boolean)[DepthTest] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setDepthTest(boolean)[DepthTest] 
 a|(Boolean)
 a|(Boolean)
 a| Enable depth testing 
 a| Enable depth testing 
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setBlendMode(com.jme3.material.RenderState.BlendMode)[Blend] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setBlendMode(com.jme3.material.RenderState.BlendMode)[Blend] 
 a|(Enum: BlendMode)
 a|(Enum: BlendMode)
 a| Set the blending mode 
 a| Set the blending mode 
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setAlphaFallOff(float)[AlphaTestFalloff] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setAlphaFallOff(float)[AlphaTestFalloff] 
 a|(Float)
 a|(Float)
 a| Set the alpha testing alpha falloff value (if set, it will enable alpha testing) 
 a| Set the alpha testing alpha falloff value (if set, it will enable alpha testing) 
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setPolyOffset(float, float)[PolyOffset] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setPolyOffset(float,float)[PolyOffset] 
 a|(Float, Float)
 a|(Float, Float)
 a| Set the polygon offset factor and units 
 a| Set the polygon offset factor and units 
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setColorWrite(boolean)[ColorWrite] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setColorWrite(boolean)[ColorWrite] 
 a|(Boolean)
 a|(Boolean)
 a| Enable color writing
 a| Enable color writing
 
 
-a| link:http://jmonkeyengine.org/javadoc/com/jme3/material/RenderState.html#setPointSprite(boolean)[PointSprite] 
+a| link:http://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setPointSprite(boolean)[PointSprite] 
 a|(Boolean)
 a|(Boolean)
 a| Enable point sprite rendering for point meshes 
 a| Enable point sprite rendering for point meshes