Posted By: HeelX
effect_load for string content - 05/02/11 19:50
Hi,
I consider compiling shaders during runtime and I wanted to ask you, if you could modify effect_load or create a new funtion for loading shaders from STRING* or char* data. This way, I could add dynamic code in front of the first line of a .fx file, for instance #define's, which are being added due to Lite-C compiler defines (like disabling specific sections of a shader, because it is disabled in a Lite-C header file or in a options menu, e.g. low/high shader quality).
Is that a reasonable feature suggestion? I hope so
best regards,
-Christian
I consider compiling shaders during runtime and I wanted to ask you, if you could modify effect_load or create a new funtion for loading shaders from STRING* or char* data. This way, I could add dynamic code in front of the first line of a .fx file, for instance #define's, which are being added due to Lite-C compiler defines (like disabling specific sections of a shader, because it is disabled in a Lite-C header file or in a options menu, e.g. low/high shader quality).
Is that a reasonable feature suggestion? I hope so
best regards,
-Christian