;--------------------------------------
;Maybank BVE Route Object File
;--------------------------------------
;(c) Tony Haylor 2003
;Email my1st.go@ntlworld.com
;
;Object and textures (c) Anthony Bowden 2002.
;www.railsimroutes.co.uk
;Modified by Tony Haylor, 
;with kind permission of Anthony Bowden.
;Originally from West Coast Main Line BVE 
;Route Object Watford Jcn - Milton Keynes Central
;
;--------------------------------------
;
;Please seek permission before using
;any Maybank files in your own route.
;
;see 'Readme.txt' file.
;

CreateMeshBuilder,
AddVertex,-120, -0.3, 30,
AddVertex,120, -0.3, 30,
AddVertex,120, -0.31, 0,
AddVertex,160, -9, -15,
AddVertex,-160, -9, -15,
AddVertex,-120, -0.31, 0,
AddFace,0,1,2,5,
AddFace,5,2,3,4,
SetColor,200,200,200,
GenerateNormals,

LoadTexture,grass6.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 1, 2,
SetTextureCoordinates,4, 0, 2,
SetTextureCoordinates,5, 0, 1,

;Embankments
CreateMeshBuilder,
AddVertex,-12, 7.02, 26,
AddVertex,5.5, -5.3, 26,
AddVertex,5.5, -5.3, -16.5,
AddVertex,-60.0, -5, 0,
AddVertex,-12.0, 6, 0,
AddFace,0,1,2,4,
AddFace,4,2,3,
GenerateNormals,

LoadTexture,grass6.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 1,

;Embankments
CreateMeshBuilder,
AddVertex,21.78, 7.02, 26,
AddVertex,4.3, -5.3, 26,
AddVertex,4.3, -5.3, -16.5,
AddVertex,69.78, -5, 0,
AddVertex,21.78, 6, 0,
AddFace,4,2,1,0,
AddFace,3,2,4,

GenerateNormals,

LoadTexture,grass6.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 1,

;Tree Tall
CreateMeshBuilder,
AddVertex,-3,15,14,
AddVertex,-3,4,14,
AddVertex,-14,4,14,
AddVertex,-14,15,14,
AddFace,0,1,2,3,

GenerateNormals,

LoadTexture,tree1.bmp,
SetTextureCoordinates,0,00,0,
SetTextureCoordinates,1,00,1,
SetTextureCoordinates,2,01,1,
SetTextureCoordinates,3,01,0,
SetDecalTransparentColor,000,000,000,
