From: Heeyong Song Date: Mon, 11 Dec 2017 02:48:42 +0000 (+0900) Subject: Fix shader compile error fix in npatch visual X-Git-Tag: dali_1.3.4~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7259b35f020ce701e11be3dc9b6f7a9dd937949f;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Fix shader compile error fix in npatch visual Change-Id: I86677282cbffcc0744858dd250509dba128fab0b --- diff --git a/dali-toolkit/internal/visuals/npatch/npatch-visual.cpp b/dali-toolkit/internal/visuals/npatch/npatch-visual.cpp index 33a4842..da50b3e 100755 --- a/dali-toolkit/internal/visuals/npatch/npatch-visual.cpp +++ b/dali-toolkit/internal/visuals/npatch/npatch-visual.cpp @@ -56,6 +56,7 @@ const char * const AUXILIARY_IMAGE_ALPHA_NAME( "auxiliaryImageAlpha" ); const char* VERTEX_SHADER = DALI_COMPOSE_SHADER( attribute mediump vec2 aPosition;\n varying mediump vec2 vTexCoord;\n + varying mediump vec2 vMaskTexCoord;\n uniform mediump mat4 uMvpMatrix;\n uniform mediump vec3 uSize;\n uniform mediump vec2 uNinePatchFactorsX[ FACTOR_SIZE_X ];\n @@ -83,7 +84,7 @@ const char* VERTEX_SHADER = DALI_COMPOSE_SHADER( mediump vec4 gridPosition = vec4( fixedFactor + ( visualSize.xy - fixedTotal ) * stretch / stretchTotal, 0.0, 1.0 );\n mediump vec4 vertexPosition = gridPosition;\n vertexPosition.xy -= visualSize.xy * vec2( 0.5, 0.5 );\n - vertexPostion.xy += anchorPoint*visualSize + (visualOffset + origin)*uSize.xy;\n + vertexPosition.xy += anchorPoint*visualSize + (visualOffset + origin)*uSize.xy;\n vertexPosition = uMvpMatrix * vertexPosition;\n \n vTexCoord = ( fixedFactor + stretch ) / ( fixedTotal + stretchTotal );\n