I`m trying to implement into my scene bloom effect for all the objects, i`m still new to the shader thing and don't know if i made this right but can anyone show me what i missed because nothing changed in my game and i get an error "GetVector does not exist" and when i look in a certain angle i see the quad textured all over my screen.
Here is my code:
dbLoadImage("effects/detail2.jpg",2);
dbMakeCamera(3);
dbColorBackdrop(3,0);
dbLoadCameraEffect("effects/Bloom.dbs",4,0);
dbSetCameraEffect(3,4,2);
dbMakeObjectPlane(70,2,2);
dbLoadEffect("effects/Quad.fx",5,0);
dbSetObjectEffect ( 70, 5 );
dbMakeVector4(71);
dbSetVector4(71,dbScreenWidth ( ), dbScreenHeight ( ), 0, 0 );
dbSetEffectConstantVector ( 5, "ViewSize", 1 );
dbDeleteVector4(71);
dbTextureObject(70,0,2);
dbPositionCamera ( 3, dbCameraPositionX ( 0 ), dbCameraPositionY ( 0 ), dbCameraPositionZ ( 0 ) );
dbRotateCamera ( 3, dbCameraAngleX ( 0 ), dbCameraAngleY ( 0 ), dbCameraAngleZ ( 0 ) );
In the same scene i have implemented Fresnel Water using cameras 1 and 2.