

createmeshbuilder
addvertex,-2.7,1.5,-22
addvertex,-2.7,1.5,-9
addvertex,-2.7,-0.5,-9
addvertex,-2.7,-0.5,-22
addface,0,1,2,3

generatenormals,

loadtexture,shortwoodfence.png
settexturecoordinates,0,0,0
settexturecoordinates,1,2,0
settexturecoordinates,2,2,1
settexturecoordinates,3,0,1
setdecaltransparentcolor,0,0,255


CreateMeshBuilder,
AddVertex,0, -0.9, -22,
AddVertex,0, -0.9, -9,
AddVertex,-3, -0.39, -9,
AddVertex,-3, -0.39, -22,
AddFace,3,2,1,0,
GenerateNormals,

LoadTexture,lineside.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 1, 1,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 0, 0,

CreateMeshBuilder,
AddVertex,-3, -0.39, -22,
AddVertex,-3, -0.39, -9,
AddVertex,-6, -0.39, -9,
AddVertex,-6, -0.39, -22,
AddFace,3,2,1,0,
GenerateNormals,

LoadTexture,lineside1.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 1, 1,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 0, 0,