blender/doc
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
..
blender_file_format correct FSF address, as pointed out by Dave Plater 2011-06-21 05:01:54 +00:00
build_systems Fix #28154: linux3-config.py doesn't exist 2011-08-21 13:31:46 +00:00
doxygen change doxygen string to 2.59 2011-08-09 07:48:40 +00:00
guides == docs == 2010-10-13 14:44:22 +00:00
license == docs == 2010-10-13 14:44:22 +00:00
manpage quiet 2 compiler warnings and update man page 2011-06-04 03:07:56 +00:00
python_api GPU: add gpu python module with export_shader() function to export GLSL shader. 2011-09-09 11:55:38 +00:00