Short:
Is it possible to define a function that each shader can use? Or should I define it for each shader?
The whole story:
Thus, the ramps must be defined as ONCE per shader , and the function must be defined all at once , which each shader can use safely.
I have algorithms, the question is about sharing functions and defining constants in GLSL.
Is it possible? Or do I need to copy a function to each shader? Is there any precompilation option?
Geri source
share