Commit 82f62b62 authored by perepelits.m's avatar perepelits.m Committed by Cedric BAIL

edje: fix specular color

Summary: We use int from 0 to 255 for color, not float

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: jpeg, artem.popov

Differential Revision: https://phab.enlightenment.org/D4182Signed-off-by: default avatarCedric BAIL <cedric@osg.samsung.com>
parent 7affe8c2
......@@ -11284,10 +11284,10 @@ st_collections_group_parts_part_description_properties_specular(void)
ed = (Edje_Part_Description_Light*) current_desc;
ed->light.properties.specular.r = parse_float_range(0, 0.0, 1.0);
ed->light.properties.specular.g = parse_float_range(1, 0.0, 1.0);
ed->light.properties.specular.b = parse_float_range(2, 0.0, 1.0);
ed->light.properties.specular.a = parse_float_range(3, 0.0, 1.0);
ed->light.properties.specular.r = parse_int_range(0, 0, 255);
ed->light.properties.specular.g = parse_int_range(1, 0, 255);
ed->light.properties.specular.b = parse_int_range(2, 0, 255);
ed->light.properties.specular.a = parse_int_range(3, 0, 255);
}
case EDJE_PART_TYPE_MESH_NODE:
{
......@@ -11295,10 +11295,10 @@ st_collections_group_parts_part_description_properties_specular(void)
ed = (Edje_Part_Description_Mesh_Node*) current_desc;
ed->mesh_node.properties.specular.r = parse_float_range(0, 0.0, 1.0);
ed->mesh_node.properties.specular.g = parse_float_range(1, 0.0, 1.0);
ed->mesh_node.properties.specular.b = parse_float_range(2, 0.0, 1.0);
ed->mesh_node.properties.specular.a = parse_float_range(3, 0.0, 1.0);
ed->mesh_node.properties.specular.r = parse_int_range(0, 0, 255);
ed->mesh_node.properties.specular.g = parse_int_range(1, 0, 255);
ed->mesh_node.properties.specular.b = parse_int_range(2, 0, 255);
ed->mesh_node.properties.specular.a = parse_int_range(3, 0, 255);
break;
}
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment