

createmeshbuilder
addvertex,4,1.25,-13
addvertex,4,1.5,12
addvertex,4,-0.5,12
addvertex,4,-0.75,-13
addface,3,2,1,0

generatenormals,
loadtexture,woodfence.png
settexturecoordinates,0,0,0
settexturecoordinates,1,2,0
settexturecoordinates,2,2,1
settexturecoordinates,3,0,1
setdecaltransparentcolor,0,0,255

CreateMeshBuilder,
AddVertex,1, -0.9, -13,
AddVertex,1, -0.9, 12,
AddVertex,4, -0.39, 12,
AddVertex,4, -0.8, -13,
AddFace,0,1,2,3,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,4, -0.8, -13,
AddVertex,4, -0.39, 12,
AddVertex,7, -0.39, 12,
AddVertex,7, -0.8, -13,
AddFace,0,1,2,3,
GenerateNormals,

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