What variable has the x,y,z coordinates of a point in Material Def / Vertex / Fragment Shader of Ter

Hello all,



I’m modifying TerrainLighting.jme3d’s Shader so it colors the terrain according to height of the terrain.



What variable has the x,y,z coordinates of a point in Material Def / Vertex / Fragment Shader of TerrainLighting.j3md?

Where should I be making this changes?

You are speaking of world coordinates. Look at the tri-planar shading section of the material, it does it on world coordinates. Also look at the HeightBasedTerrain shader

Cool thanks!