Exportcode, file naming
Hi,
I'm trying to use the "exportcode" message to jit.gl.pix to export a shader.
My goal is to able to use the "dispose" and "read..." message to be able to switch it on and off.
But I don't understand how to change the name of the file, which is necessary if I want to export a few of them.
If I change the"gen_exported" part of the name, it doesn't work anymore.
You can try with the jit.gl.pix help file: export the jxs file and then change the name.
Passing the name with the exportcode message doesn't work either.
What did I miss ?
Thanks
Nobody ?
Hi,
Currently it names the files off of the @gen attribute. It should do like gen~ though and use the @title or @name attributes if @gen isn't set. I'll file a bug report.
As for renaming the files, if you do that, you have to rename the file references inside the .jxs file. So, if you have:
gen_exported.fp.glsl
gen_exported.vp.glsl
gen_exported.jxs
You need to change these names inside gen_exported.jxs:
Thank you Wesley, renaming works fine.
Y.