<div dir="ltr">Hi,<div><br></div><div>There's a way to modify uniform variables for the glshader element.</div><div>The following is an example of changing simple value types like float.</div><div><br></div><div><br></div><div>    uniforms = Gst.Structure.new_empty("uniforms")<br>    u1 = GObject.Value(GObject.TYPE_FLOAT)<br></div>    u1.set_float(hdegree)<br>    uniforms.set_value("u1", u1)<div>    shader.set_property("uniforms", uniforms)<br>    uniforms.free()<br></div><div><br></div><div>But it is common in GLSL shader we use data types like Vec2/Vec3.</div><div>The following code did not work.</div><div>    v1 = Graphene.Vec2()<br>    v1.init(0.5,0.5)<br>    uniforms.set_value("v1", v1)<br></div><div><br></div><div>Should I create GObject.Value() with GObject.TYPE_?? for Graphene.Vec2?</div><div>How to set the  Graphene.Vec2 object to the GObject.Value?</div><div><br></div><div>Thanks.</div><div><br></div><div>Regards,</div><div><br></div><div>Yu</div><div><br></div><div>  </div></div>