This command creates a new effect object from the specified source. The returned effect object can be applied to any <node3d> object or added to an existing <composer> object.
code = """
Effect "MyEffect" {
Shader {
BEGIN Material
m.diffuse = vec3(1.0,0.0,0.0);
END
}
}
"""
effect = viz.addEffect(code)