_pack_ = 1
_fields_ = [("type",c_uint32),
("colour",c_float*4),
- ("angle",c_float)]
+ ("angle",c_float),
+ ("range",c_float)]
def encode_obj(_, node, node_def):
#{
_.colour[1] = data.color[1]
_.colour[2] = data.color[2]
_.colour[3] = data.energy
+ _.range = data.cutoff_distance # this has to be manually set
+ # TODO: At some point, automate a min
+ # threshold value
if obj.data.type == 'POINT':
#{
elif obj.data.type == 'SPOT':
#{
_.type = 1
- _.angle = math.cos(data.spot_size*0.5)
+ _.angle = data.spot_size*0.5
#}
if data.cv_data.bp0: