jit.gl.cornerpin to get a texture

Stephane Morisse's icon

I've made a device for perspective correction to be used with the Vizzable suite in Live using jit.gl.cornerpin. The problem is that it doesn't actually edit a texture but rather alters the rendering context, so it's effecting the viewr but not the previewr. So is it possible to use jit.gl.cornerpin to effect a texture not a final rendering context ?

Stephane Morisse's icon

btw, it seems that the attachment didn't work...

cornerpinr.amxd_.zip
zip
Stephane Morisse's icon
Rob Ramirez's icon

simply use another gl.node to capture the gl.cornerpin to a texture.
then display that texture using gl.videoplane @transform_reset 2 on both the main context and the preview context