[Bf-blender-cvs] [e5c4612] decklink: BGE: Add documentation for bge.types.BL_Shader.setUniformEyef()

Benoit Bolsee noreply at git.blender.org
Fri Nov 13 00:48:05 CET 2015


Commit: e5c461285f0643e4ff9d4dd6843b358cda62df38
Author: Benoit Bolsee
Date:   Fri Nov 13 00:46:05 2015 +0100
Branches: decklink
https://developer.blender.org/rBe5c461285f0643e4ff9d4dd6843b358cda62df38

BGE: Add documentation for bge.types.BL_Shader.setUniformEyef()

===================================================================

M	doc/python_api/rst/bge_types/bge.types.BL_Shader.rst

===================================================================

diff --git a/doc/python_api/rst/bge_types/bge.types.BL_Shader.rst b/doc/python_api/rst/bge_types/bge.types.BL_Shader.rst
index f4f5c0d..5c8f0f7 100644
--- a/doc/python_api/rst/bge_types/bge.types.BL_Shader.rst
+++ b/doc/python_api/rst/bge_types/bge.types.BL_Shader.rst
@@ -214,6 +214,16 @@ base class --- :class:`PyObjectPlus`
       :arg iList: a list (2, 3 or 4 elements) of integer values
       :type iList: list[integer]
 
+   .. method:: setUniformEyef(name)
+
+      Set a uniform with a float value that reflects the eye being render in stereo mode: 
+      0.0 for the left eye, 0.5 for the right eye. In non stereo mode, the value of the uniform
+      is fixed to 1.0. The typical use of this uniform is in stereo mode to sample stereo textures
+      containing the left and right eye images in a top-bottom order. 
+
+      :arg name: the uniform name
+      :type name: string
+
    .. method:: validate()
 
       Validate the shader object.




More information about the Bf-blender-cvs mailing list