mitm001 vor 5 Jahren
Ursprung
Commit
16a31fcef5
1 geänderte Dateien mit 4 neuen und 8 gelöschten Zeilen
  1. 4 8
      docs/modules/core/pages/shader/jme3_shaders.adoc

+ 4 - 8
docs/modules/core/pages/shader/jme3_shaders.adoc

@@ -1,10 +1,6 @@
 = JME3 and Shaders
-:author:
-:revnumber:
-:revdate: 2016/03/17 20:48
-:relfileprefix: ../../
-:imagesdir: ../..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
+:revnumber: 2.0
+:revdate: 2020/07/22
 
 
 
@@ -26,7 +22,7 @@ The main purpose of the Vertex shader is to compute the screen coordinate of a v
 
 This is a very simplified graphic to describe the call stack:
 
-image:jme3/advanced/jme3andshaders.png[jme3andshaders.png,width="",height="", align="left]
+image:shader/jme3andshaders.png[jme3andshaders.png,width="",height="", align="left]
 
 The main program sends mesh data to the vertex shader (vertex position in object space, normals, tangents, etc..). The vertex shader computes the screen position of the vertex and sends it to the Fragment shader. The fragment shader computes the color, and the result is displayed on screen or in a texture.
 
@@ -46,7 +42,7 @@ There is a large panel of variable types to be used, for more information about
 
 To understand the coming example you must know about the different spaces in 3D computer graphics, and the matrices used to translate coordinate from one space to another.
 
-image:jme3/advanced/jme3andshaders-1.png[jme3andshaders-1.png,width="",height="", align="left"]
+image:shader/jme3andshaders-1.png[jme3andshaders-1.png,width="",height="", align="left"]
 
 The engine passes the object space coordinates to the vertex shader. We need to compute its position in projection space. To do that we transform the object space position by the WorldViewProjectionMatrix, which is a combination of the World, View, Projection matrices (who would have guessed?).