I have a shader and an example code that shows how to implement it, it's from Dark Shader.The problem is that there are two unknown commands.They are not included in help files.First is
load camera effect and the other is
set camera effect.My problem is that i want to use camera for the effect different from camera 1 as it is in the example, but no success.Here is the example code:
rem Initialise
sync on
sync rate 0
rem Load model and shader effect
load object "cube.dbo",1
autocam off
load effect "DefaultShader.dbs",1,1
set object effect 1,1
rem Make fullscreen shader camera and effect
make camera 1 : color backdrop 1,rgb(0,0,128)
load camera effect "Bloom.dbs",1,0
set camera effect 1,1,2
rem Make fullscreen plane
make object plain 2,2,2,1
load effect "quad.fx",2,0
set object effect 2,2
null = make vector4(1)
set vector4 1,screen width(),screen height(),0,0
set effect constant vector 1,"ViewSize",1
null = delete vector4(1)
texture object 2,0,2
do
text 0,0,"FPS: "+str$(screen fps())
rem Position camera to main camera location
position camera 1,camera position x(0),camera position y(0),camera position z(0)
rotate camera 1,camera angle x(0),camera angle y(0),camera angle z(0)
rem Draw fullscreen shader camera
show object 1
hide object 2
sync camera 1
show object 2
hide object 1
rem Draw main camera
sync mask %001 : sync
rem Hide fullscreen plane
hide object 2
loop
Coding is My Kung Fu!
And My Kung Fu is better than Yours!