I
I
IliaNeverov2021-06-03 15:03:40
OpenGL
IliaNeverov, 2021-06-03 15:03:40

What to do with multiple shaders of the same type?

How can you work with multiple shaders of the same type? I want to have a separate shader where lighting is separate for other purposes, etc.
Here is the scheme by which I work with shaders:
1 create a program
2 load a shader
3 bind attributes
4 associate shaders with a program
5 link
Please tell me how to work with several shaders of the same type (how to change the scheme) and what kind of program is this that is created using glCreateProgram ()?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question