Blender Git Loki
Git Commits -> Revision f01f394
Revision f01f394 by Benoit Bolsee (decklink) March 29, 2015, 11:59 (GMT) |
BGE: BL_Shader.setUniformEyef(): new uniform type to pass stereo eye value. BL_Shader.setUniformEyef() python method to define a uniform that will receive the eye value as a float: 0.0 when rendering the left eye, 0.5 when rendering the right eye. This can be used in a shader to split a 3D texture sent to the GPU by VideoDeckLink as the left+right eye frame is sent as a single texture in bottom/top order. Work around a bug in VideoDeckLink with the the DVP library: the call to dvpBindToGLCtx() fails for the first frame. This needs to be investigated but for now catch the exception thrown by this condition and release the decklink frame anyway as otherwise it corrupts the reference count of the decklink device. |
Commit Details:
Full Hash: f01f3949829fd71e87ece10744c42d523b414132
Parent Commit: ad75477
Lines Changed: +95, -40