X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fshader-effects%2Fspot-effect.cpp;h=09408fb7dd44badc5311a93a2308073d00410c05;hp=eed6958d49cf12c7f9e126e38e193dfdf942147c;hb=030e7c680a6eb0e8d87bfdb8ec359a0267ef7db2;hpb=e2eda444afbe82e9591fe198eef339227f90a616 diff --git a/dali-toolkit/public-api/shader-effects/spot-effect.cpp b/dali-toolkit/public-api/shader-effects/spot-effect.cpp index eed6958..09408fb 100644 --- a/dali-toolkit/public-api/shader-effects/spot-effect.cpp +++ b/dali-toolkit/public-api/shader-effects/spot-effect.cpp @@ -1,18 +1,19 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ #include @@ -55,12 +56,12 @@ SpotEffect SpotEffect::New() "\n" "void main()\n" "{\n" - " vec4 world = vec4(aPosition, 1.0);\n" + " mediump vec4 world = vec4(aPosition, 1.0);\n" " \n" - " vec2 d = vec2(world.xy - uCenter);\n" - " float dist = length(d);\n" + " mediump vec2 d = vec2(world.xy - uCenter);\n" + " mediump float dist = length(d);\n" " \n" - " float range = (uRadius - dist) / (uRadius);\n" + " mediump float range = (uRadius - dist) / (uRadius);\n" " vRange = max(0.1, range);\n" " \n" " gl_Position = uMvpMatrix * world;\n"