;--------------------------------------
;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, 9, 30,
AddVertex,-3.5, -6.9, 30,
AddVertex,-3.5, -6.91, 0,
AddVertex,-3.5, -8.31, -5,
AddVertex,-160, -8.31, 0,
AddVertex,-120, 6, 0,
AddFace,0,1,2,5,
AddFace,5,2,3,4,

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,




;=================================
;left fence
CreateMeshBuilder,
AddVertex,-18.5, -4.9, 0,
AddVertex,-18.5, -3.9, 0,
AddVertex,-18.5, -3.9, 30,
AddVertex,-18.5, -4.9, 30,
AddFace,0,1,2,3,
SetColor,256,256,256,000,

GenerateNormals,

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

;Hedgerows

CreateMeshBuilder,
AddVertex,-120, 9.8, 0,
AddVertex,-120, 11.5, 30,
AddVertex,-120, 8.5, 30,
AddVertex,-120, 5.5, 0,
AddFace,0,1,2,3,

GenerateNormals,

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

