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

If it's not ZDoom, it goes here.
Post Reply
John101
Posts: 28
Joined: Thu Mar 22, 2018 12:46 am

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

Post 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?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

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

Post by wildweasel »

Could you give more detail about what you're specifically going for?
John101
Posts: 28
Joined: Thu Mar 22, 2018 12:46 am

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

Post 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.
John101
Posts: 28
Joined: Thu Mar 22, 2018 12:46 am

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

Post 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.
Post Reply

Return to “Off-Topic”