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

If it's not ZDoom, it goes here.

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

Postby John101 » Wed Jun 20, 2018 9:04 pm

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?
John101
Banned User
 
Joined: 22 Mar 2018

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

Postby wildweasel » Wed Jun 20, 2018 9:19 pm

Could you give more detail about what you're specifically going for?
User avatar
wildweasel
「お前はもうトースト」[you are already toast.]
Moderator Team Lead
 
Joined: 15 Jul 2003

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

Postby John101 » Wed Jun 20, 2018 9:25 pm

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
Banned User
 
Joined: 22 Mar 2018

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

Postby John101 » Wed Jun 20, 2018 9:36 pm

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.
John101
Banned User
 
Joined: 22 Mar 2018


Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 1 guest