X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fshader-effects%2Fpage-turn-book-spine-effect.cpp;h=36d18493ef12e3e6612cdb8edae962363dbaba33;hb=61be2f8d3c96e01da8e6ade2a76a192ff6ab6945;hp=9ea742ce5aa64b8ee4dc0e9a6d9c36c75c018900;hpb=e2eda444afbe82e9591fe198eef339227f90a616;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/shader-effects/page-turn-book-spine-effect.cpp b/dali-toolkit/public-api/shader-effects/page-turn-book-spine-effect.cpp index 9ea742c..36d1849 100644 --- a/dali-toolkit/public-api/shader-effects/page-turn-book-spine-effect.cpp +++ b/dali-toolkit/public-api/shader-effects/page-turn-book-spine-effect.cpp @@ -1,21 +1,26 @@ -// -// 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. + * + */ + +// CLASS HEADER #include +// EXTERNAL INCLUDES +#include + namespace Dali { @@ -55,6 +60,7 @@ PageTurnBookSpineEffect::~PageTurnBookSpineEffect() PageTurnBookSpineEffect PageTurnBookSpineEffect::New() { std::string vertexSource( + "precision mediump float;\n" "uniform float uShadowWidth;\n" " void main()\n" " {\n" @@ -65,6 +71,7 @@ PageTurnBookSpineEffect PageTurnBookSpineEffect::New() // the simplified version of the fragment shader of page turn effect std::string fragmentSource( + "precision mediump float;\n" "uniform float uIsBackImageVisible;\n" "uniform float uPageWidth;\n" "uniform vec2 uSpineShadowParameter;\n" @@ -94,7 +101,7 @@ PageTurnBookSpineEffect PageTurnBookSpineEffect::New() " }" ); ShaderEffect shader; - shader = ShaderEffect::New( vertexSource,fragmentSource ); + shader = ShaderEffect::New( vertexSource, fragmentSource ); PageTurnBookSpineEffect handle( shader ); handle.SetUniform( IS_BACK_IMAGE_VISIBLE_PROPERTY_NAME, -1.f ); handle.SetUniform( SHADOW_WIDTH_PROPERTY_NAME, DEFAULT_SHADOW_WIDTH );