- pos = obj.matrix_world@mathutils.Vector((0.0, 0.0, 1.0, 0.0))
- else:
+ light_res.statements.append(Statement("type", Token("directional")))
+ light_res.statements.append(Statement("direction", *(-obj.matrix_world.col[2])[0:3]))
+ elif light.type=='POINT':
+ light_res.statements.append(Statement("type", Token("point")))