Using your normal map on a plane
// Project: normal
// Created: 22-09-19
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "normal" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
SetAmbientColor(10, 10, 10)
SetSunDirection(0, -1, -1)
plane = CreateObjectPlane(5,5)
RotateObjectLocalX(plane, -90)
normal = LoadImage("normal.jpg")
SetObjectNormalMap(plane, normal)
SetCameraPosition(1, 0, 10, 10)
SetCameraLookAt(1, 0, 0, 0, 0)
do
RotateObjectLocalZ(plane, .5)
Print( ScreenFPS() )
Sync()
loop