;--------------------------------------
;Maybank BVE Route Object File
;--------------------------------------
;(c) Tony Haylor 2003
;Email my1st.go@ntlworld.com
;
;Object and textures (c) Steve Green.
;www.trainsimcentral.co.uk
;with kind permission of Steve Green.
;
;--------------------------------------
;
;Please seek permission before using
;any Maybank files in your own route.
;
;see 'Readme.txt' file.
;

CreateMeshBuilder,
AddVertex,-5, 1.0, 0.25,
AddVertex,-2.6, 1.0, 0.25,
AddVertex,-5, 1.0, 0,
AddVertex,-2.6, 1.0, 0,
AddVertex,-2.6, 0.7, 0,
AddVertex,-5, 0.7, 0,
AddFace,0,1,3,2,
AddFace,2,3,4,5,

GenerateNormals,

LoadTexture,Buffer2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0.1,
SetTextureCoordinates,3, 1, 0.1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-1.2, 1.0, 0.25,
AddVertex,-1.2, 1.0, 0.25,
AddVertex,-1.2, 1.0, 0,
AddVertex,1.2, 1.0, 0,
AddVertex,1.2, 0.7, 0,
AddVertex,-1.2, 0.7, 0,
AddFace,0,1,3,2,
AddFace,2,3,4,5,

GenerateNormals,

LoadTexture,Buffer2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0.1,
SetTextureCoordinates,3, 1, 0.1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-5.3,  1.100, 1,
AddVertex,1.5,  1.100, 1,
AddVertex,-5.3,  1.100, 0.5,
AddVertex,1.5,  1.100, 0.5,
AddVertex,1.5, -0.144, 0.5,
AddVertex,-5.3, -0.144, 0.5,
AddFace,0,1,3,2,
AddFace,2,3,4,5,

GenerateNormals,

LoadTexture,Stone.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 5, 0,
SetTextureCoordinates,2, 0, 0.5,
SetTextureCoordinates,3, 5, 0.5,
SetTextureCoordinates,4, 5, 1,
SetTextureCoordinates,5, 0, 1,


;Fence
CreateMeshBuilder,
AddVertex,-5.3,  3.100, 0.5,
AddVertex,1.5,  3.100, 0.5,
AddVertex,-5.3,  1.100, 0.5,
AddVertex,1.5,  1.100, 0.5,
AddFace,0,1,3,2,

GenerateNormals,

LoadTexture,Bay_fence.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 1,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

