terrain

 

Tag: terrain
Parent tag: scene
Attributes:

  • name (string) – the name of the scene object.
  • heightMap (string) – the name of the texture file.

Child tags:

  • TRANSFORM_ORDER (enum) – {T_R_S (default), T_S_R, R_T_S, R_S_T, S_T_R, S_R_T} defines the order of the geometric transformations
  • SCALE (vec3) – x, y, z
  • TRANSLATE (vec3) – x, y, z
  • ROTATE (vec3) – x, y, z, w, where (x,y,z) stand for the rotation axis and w stands for the angle in degrees

Example

	
<terrain name = "fractal" heightMap ="fractalNoise.jpg"  >
	<SCALE x=0.1 y=2.5 z =0.1 />
</terrain>

See the geometric primitives example in github.

terrain