blender/doc/python_api/rst
Benoit Bolsee 01744abd81 GPU: add gpu python module with export_shader() function to export GLSL shader.
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.
2011-09-09 11:55:38 +00:00
..
bge.constraints.rst rst API doc fixes: literalincluding bge.texture and bge.constraints examples + bgl fixes 2011-08-04 09:47:40 +00:00
bge.events.rst py api: sphinx doc corrections, pep8 cleanup and style edits, also added __all__ to some modules which were missing it. 2011-07-31 03:15:37 +00:00
bge.logic.rst fix [#28191] Exception when enabling a script for a newer Blender build 2011-08-09 14:16:22 +00:00
bge.render.rst BGE: Adding two new functions to bge.render to allow users to change the anisotropic filtering level used by textures: 2011-08-31 05:51:51 +00:00
bge.texture.rst rst API doc fixes: literalincluding bge.texture and bge.constraints examples + bgl fixes 2011-08-04 09:47:40 +00:00
bge.types.rst BGE animations: adding a missing comma. 2011-09-02 03:57:37 +00:00
bgl.rst more minor doc fixes 2011-09-06 00:41:28 +00:00
change_log.rst moved modules added to changelog (this isn't detected by the changelog generator) 2011-06-27 04:21:53 +00:00
gpu.rst GPU: add gpu python module with export_shader() function to export GLSL shader. 2011-09-09 11:55:38 +00:00
info_best_practice.rst bpy api - add new page for best-practice (so Thomas has something to point to when kicking devs for writing shoddy UI layouts) 2011-09-08 23:59:47 +00:00
info_gotcha.rst - use python convention for headings 2011-08-27 08:09:12 +00:00
info_overview.rst - use python convention for headings 2011-08-27 08:09:12 +00:00
info_quickstart.rst bpy api - add new page for best-practice (so Thomas has something to point to when kicking devs for writing shoddy UI layouts) 2011-09-08 23:59:47 +00:00
info_tips_and_tricks.rst correction to docs. 2011-09-08 10:15:27 +00:00