Where can I get more information on shaders? Searching the net provides nothing concerning AGK2.
Apparently, a point light still does not create shadow. I can get shadow only when using a directional light.
Also, do the lights use inverse square law? Or would that be set up in a shader?
SetWindowTitle( "3d testing" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
setcamerarange(1,15,1000)
SetCameraPosition(1,10,10,0)
SetCameraRotation(1,0,0,0)
SetCameraLookAt( 1, 0, 0, 100, 0 )
//CreateLightPoint(1,0,100,0,100,255,255,255)
CreateLightDirectional( 1, 0, 0, 0, 255,255,255 )
SetLightDirectionalDirection( 1, -25, -50,-25 )
LoadShader(1,"vertex.vs","pixel.ps")
CreateObjectBox(1,10,10,10)
SetObjectPosition(1,0,0,100)
SetObjectShader(1,1)
setobjectlightmode(1,1)
do
Print( ScreenFPS() )
Sync()
loop
home.wavecable.com/~mindsclay