If we want to send data from one shader to the other we'd have to declare an output in the sending shader and a similar input in the receiving shader. When the types and the names are equal on both sides OpenGL will link those variables together and then it is possible to send data between shaders — (this is done when linking a program object).

picture loading error handler
15 thought(s)15

Shaders & GLSL

notes + algo + examples + experiments
creative coding

Explore more quotes

Email:thur antony@gmail com128723 1pk4hyr.fwlc6av2t9
Tony Nemo
Tony Nemo
Tony Nemo