Applying a shader to a camera and camera_set_end_script does not work.

F

FatDazz

Guest
Hello,

I would like to apply a shader on the view of a camera. My ideas for coding it, are as follow.
For implied cameras I add a scripts to them at the beginning of the view and another at the end of the view.

in the create Obj_Cameras:
camera_set_begin_script(view_camera[ i ], script_begin);
camera_set_end_script(view_camera[ i ], script_end);
in the script script_begin:
shader_set(shd);
in the script script_end:
shader_reset();
My main problem now, is that the script script_end is not running. And I really don't know why?

Thank you
 
Top