Ver Fonte

Updated the available shader parameters (#138)

grizeldi há 3 anos atrás
pai
commit
5eacc12087

+ 1 - 1
docs/modules/core/pages/material/material_specification.adoc

@@ -94,7 +94,7 @@ MaterialParameters {
 
 Whereas in the J3MD file, the parameter names and types are specified, in a J3M (Material instance) file, the values for these parameters are assigned, as will be shown later. This is how the materials are configured.
 
-At the time of writing, the following types of parameters are allowed inside J3MD files: Int, Boolean, Float, Vector2, Vector3, Vector4, Texture2D, TextureCubeMap.
+At the time of writing, the following types of parameters are allowed inside J3MD files: Int, Boolean, Float, Vector2, Vector3, Vector4, Texture2D, Texture3D, TextureCubeMap, Matrix3, Matrix4, IntArray, FloatArray, Vector2Array, Vector3Array, Vector4Array, Matrix3Array, Matrix4Array and TextureArray. For an up to date list of the parameter types, check out the VarType class here: https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/shader/VarType.java
 
 You can specify a default value for material parameters, inside material definitions, in the case that no value is specified in the material instance.