

createmeshbuilder
addvertex,-2.7,1.5,-13
addvertex,-2.7,1.5,-0.5
addvertex,-2.7,-0.5,-0.5
addvertex,-2.7,-0.5,-13
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, -13,
AddVertex,0, -0.9, -0.5,
AddVertex,-3, -0.39, -0.5,
AddVertex,-3, -0.39, -13,
AddFace,3,2,1,0,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-3, -0.39, -13,
AddVertex,-3, -0.39, -0.5,
AddVertex,-6, -0.39, -0.5,
AddVertex,-6, -0.39, -13,
AddFace,3,2,1,0,
GenerateNormals,

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