summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_canvas3d_mesh.c
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2015-11-09 15:07:15 -0800
committerCedric BAIL <cedric@osg.samsung.com>2015-11-09 15:27:26 -0800
commit3af65dd4e242b684f2aae89e32bd5db6cc387e50 (patch)
tree3ec7331a89ec7bebf126085fff82116ce4683b27 /src/lib/evas/canvas/evas_canvas3d_mesh.c
parentfb75f6df5a28a048b4e45689e707067faabf8e1e (diff)
evas: unification of color pick mechanism.
Summary: Use same way using color pick under GLES and not: Use GL_RGBA texture insted of GL_RED Generate and pass to engine 3 components color of mesh See T2761 Reviewers: cedric, Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3135 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_canvas3d_mesh.c')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c
index f5aaec4..f6d91f1 100644
--- a/src/lib/evas/canvas/evas_canvas3d_mesh.c
+++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c
@@ -124,14 +124,12 @@ _mesh_init(Evas_Canvas3D_Mesh_Data *pd)
124 pd->alpha_comparison = EVAS_CANVAS3D_COMPARISON_ALWAYS; 124 pd->alpha_comparison = EVAS_CANVAS3D_COMPARISON_ALWAYS;
125 pd->alpha_ref_value = 0.0f; 125 pd->alpha_ref_value = 0.0f;
126 pd->alpha_test_enabled = EINA_FALSE; 126 pd->alpha_test_enabled = EINA_FALSE;
127#ifndef GL_GLES 127
128 pd->color_pick_key = -1.0;
129#else
130 pd->color_pick_key.r = 0.0; 128 pd->color_pick_key.r = 0.0;
131 pd->color_pick_key.g = 0.0; 129 pd->color_pick_key.g = 0.0;
132 pd->color_pick_key.b = 0.0; 130 pd->color_pick_key.b = 0.0;
133#endif
134 pd->color_pick_enabled = EINA_FALSE; 131 pd->color_pick_enabled = EINA_FALSE;
132
135 pd->shadows_edges_filtering_level = 4; 133 pd->shadows_edges_filtering_level = 4;
136 pd->shadows_edges_size = 300.0; 134 pd->shadows_edges_size = 300.0;
137 pd->shadows_constant_bias = 0.00015; 135 pd->shadows_constant_bias = 0.00015;