01744abd81
shader = gpu.export_shader(scene,material) Returns the GLSL shader that blender generates to produce the visual effect of material in scene for the purpose of reusing the shader in an external engine. This function is meant to be used in a material exporter so that the GLSL shader can be exported entirely. The return value is a dictionary containing the shader source code and all associated data. The full documentation is under sphinx. Warning: there has been an API between the patch and this commit: uniform['lamp'] and uniform['image'] now return python reference to ID block instead of ID name as before. The X3D exporter that uses this function must be adapted. |
||
---|---|---|
.. | ||
bge.constraints.rst | ||
bge.events.rst | ||
bge.logic.rst | ||
bge.render.rst | ||
bge.texture.rst | ||
bge.types.rst | ||
bgl.rst | ||
change_log.rst | ||
gpu.rst | ||
info_best_practice.rst | ||
info_gotcha.rst | ||
info_overview.rst | ||
info_quickstart.rst | ||
info_tips_and_tricks.rst |