added method to opengl effect