I see. It's because I need to generate a bunch of caustics, with the index of refraction of each image is computed based on some complex maths formula. yeah, also not working after I set it to global proc. About the name of the procedure, it's something else, not 'myProc' as written here. Thanks