image_shader

declaration:

::lua
function image_shader(vid, shid) => nil;

Associate a prebuilt shader with vid. A shid with value 0 will revert the active shader to the default one.

caveats:
Using an invalid shid or one that did not pass the compilation stage properly may fail silent (or emitt a lot of warnings in debug-mode). For MesaGL/Linux, remember to use the MESA_DEBUG sysenv variable.

related functions:
[mesh_shader] [build_shader] [shader_uniform]


Related

Wiki: Shader Functions
Wiki: shader_uniform

MongoDB Logo MongoDB