Dali 3D User Interface Engine
Variables
Dali::Toolkit::Internal::anonymous_namespace{emboss-filter.cpp} Namespace Reference

Variables

const float ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f
 
const char * EMBOSS_FRAGMENT_SOURCE1
 
const char * EMBOSS_FRAGMENT_SOURCE2
 
const char *const COMPOSITE_FRAGMENT_SOURCE
 

Variable Documentation

const float Dali::Toolkit::Internal::anonymous_namespace{emboss-filter.cpp}::ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f

Definition at line 42 of file emboss-filter.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{emboss-filter.cpp}::COMPOSITE_FRAGMENT_SOURCE
Initial value:
=
"void main()\n"
"{\n"
" gl_FragColor = uColor;\n"
" gl_FragColor.a *= texture2D( sTexture, vTexCoord).a;\n"
"}\n"

Definition at line 104 of file emboss-filter.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{emboss-filter.cpp}::EMBOSS_FRAGMENT_SOURCE1
Initial value:
=
{
"precision highp float;\n"
"uniform vec2 uTexScale;\n"
"\n"
"void main()\n"
"{\n"
" vec4 color;\n"
"# ifdef DEBUG_RENDER\n"
" if( vTexCoord.s < 0.495 )\n"
" {\n"
"# endif //def DEBUG_RENDER\n"
" color = 2.0 * texture2D( sTexture, vTexCoord + vec2(0.0, -uTexScale.y) );\n"
" color += -1.0 * texture2D( sTexture, vTexCoord );\n"
" color += -1.0 * texture2D( sTexture, vTexCoord + vec2(0.0, uTexScale.y) );\n"
"# ifdef DEBUG_RENDER\n"
" }\n"
" else if( vTexCoord.s > 0.505 )\n"
" {\n"
" color = texture2D( sTexture, vTexCoord );\n"
" }\n"
" else\n"
" {\n"
" color = vec4( 1.0, 0.0, 0.0, 1.0 );\n"
" }\n"
"# endif //def DEBUG_RENDER\n"
" gl_FragColor = uColor * color;\n"
"}\n"
}

Definition at line 44 of file emboss-filter.cpp.

Referenced by Dali::Toolkit::Internal::EmbossFilter::Enable().

const char* Dali::Toolkit::Internal::anonymous_namespace{emboss-filter.cpp}::EMBOSS_FRAGMENT_SOURCE2
Initial value:
=
{
"precision highp float;\n"
"uniform vec2 uTexScale;\n"
"\n"
"void main()\n"
"{\n"
" vec4 color;\n"
"# ifdef DEBUG_RENDER\n"
" if( vTexCoord.s < 0.495 )\n"
" {\n"
"# endif //def DEBUG_RENDER\n"
" color = -1.0 * texture2D( sTexture, vTexCoord + vec2(0.0, -uTexScale.y) );\n"
" color += -1.0 * texture2D( sTexture, vTexCoord );\n"
" color += 2.0 * texture2D( sTexture, vTexCoord + vec2(0.0, uTexScale.y) );\n"
"# ifdef DEBUG_RENDER\n"
" }\n"
" else if( vTexCoord.s > 0.505 )\n"
" {\n"
" color = texture2D( sTexture, vTexCoord );\n"
" }\n"
" else\n"
" {\n"
" color = vec4( 1.0, 0.0, 0.0, 1.0 );\n"
" }\n"
"# endif //def DEBUG_RENDER\n"
" gl_FragColor = uColor * color;\n"
"}\n"
}

Definition at line 74 of file emboss-filter.cpp.

Referenced by Dali::Toolkit::Internal::EmbossFilter::Enable().

Dali Docs Home
Read more about Dali