@Hawkblood & @Madscientist
Well i downloaded Evolved
Deferred shader
s. it has alot of functions in a big .dba file, that lets you make a light, set it up, make water and tones more. e.g. so you dont have to actually call the dll to change a light colour, u just use the function e.g. deferred_changeLightColor(LightID,Colour) (thats not the correct function name, as i havnt checked it.)
EDIT:
Ok here is a small example I pulled out of my code.
Rem ****************************************************************** Rem
Rem ******** Create ******** Rem
Rem ****************************************************************** Rem
`Make matrix 1,100,100,50,50
`Position matrix 1,0,0,0
Load Image "Data\images\Floor2.png",1
Load Image "Data\images\Floor2_N.png",2
Deferred_SetUp(640,480,512,1)
Deferred_SetCamera(1,25000,85)
backdrop on 0
color backdrop 0,rgb(128,128,128)
CamDis#=-100
Deferred_SetAmbient(75,75,75,1.0)
Deferred_SetFog(128,128,128,25000)
`Water_Setup("Data\Shaders\Water Parallax.fx")
`Water_SetWaterScale(-10,5,5)
load effect "Data\Shaders\normalmap.fx",1,0
Deferred_AddEffect(1)
make object box 1,75,75,75 : Object=1
Deferred_AddObject(1)
Deferred_SetObjectDynamic(1)
set object effect 1,1
texture object 1,1,1
texture object 1,2,2
`Create floor
make object box 2,1000,1,1000
position object 2,0,-65,0
scale object texture 2,0,10,10
Deferred_AddObject(2)
set object effect 2,1
texture object 2,1,1
texture object 2,2,2
`Make Point Light
Deferred_MakePointLight(1,"Data\Shaders\point.fx")
Deferred_SetPointLightRange(1,1500)
Deferred_SetPointLightShadows(1,2)
`Deferred_PositionPointLight(1,0,10000,0)
Deferred_PositionPointLight(1,-75,70,-75)
and in the loop -
If Timer() >= NewTime + 20
Deferred_Update()
NewTime = Timer()
Endif
Water_Update() ` deferred shader function, not my function
UpdateCamera() ` my function
Sync
Loop