diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.BL_Shader.rst | 10 |
1 files changed, 10 insertions, 0 deletions
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 f4f5c0d62ba..a389f68ee04 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 0.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. |