A complete 3D game development suite written purely in Java.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
jmonkeyengine/jme3-terrain/src/main/resources/Common/MatDefs/Terrain/Terrain.j3md

32 lines
586 B

MaterialDef Terrain {
MaterialParameters {
// use tri-planar mapping
Boolean useTriPlanarMapping
Texture2D Alpha -LINEAR
Texture2D Tex1
Texture2D Tex2
Texture2D Tex3
Float Tex1Scale
Float Tex2Scale
Float Tex3Scale
}
Technique {
VertexShader GLSL100: Common/MatDefs/Terrain/Terrain.vert
FragmentShader GLSL100: Common/MatDefs/Terrain/Terrain.frag
WorldParameters {
WorldViewProjectionMatrix
}
Defines {
TRI_PLANAR_MAPPING : useTriPlanarMapping
}
}
Technique {
}
}