Page 1 of 1

OpenGL: How to compile a shader to multiple images at once

Posted: Wed Jun 20, 2018 8:04 pm
by John101
Hey, Community I have always been wondering if its possible to compile a shader to multiple images at once aka "textures" with OpenGL.
If So How would one do this I had a friend that showed me an example on how he did it but he never told me how he did it and that's been like 2 years ago and I am not friends with him anymore tho does anyone have the answer to this question?

Re: OpenGL: How to compile a shader to multiple images at on

Posted: Wed Jun 20, 2018 8:19 pm
by wildweasel
Could you give more detail about what you're specifically going for?

Re: OpenGL: How to compile a shader to multiple images at on

Posted: Wed Jun 20, 2018 8:25 pm
by John101
I want to be able to apply a shader "example.fx" to all textures in my directory like for example "B:\textures"
I know how to compile a shader to 1 texture from a simple shader ".fx" file but how to compile 1 shader ".fx" file to all my textures at once like a batch editor would do for images.

Re: OpenGL: How to compile a shader to multiple images at on

Posted: Wed Jun 20, 2018 8:36 pm
by John101
One might be able to do this with DirectX instead of OpenGL I know how to do it in DirectX for sure but only 1 texture, not multiple textures at once.