Dali 3D User Interface Engine
Variables
anonymous_namespace{atlas-glyph-manager-impl.cpp} Namespace Reference

Variables

const char * VERTEX_SHADER
 
const char * FRAGMENT_SHADER_L8
 
const char * FRAGMENT_SHADER_RGBA
 

Variable Documentation

const char* anonymous_namespace{atlas-glyph-manager-impl.cpp}::FRAGMENT_SHADER_L8
Initial value:
uniform lowp vec4 uColor;
uniform sampler2D sTexture;
varying mediump vec2 vTexCoord;
varying mediump vec4 vColor;
void main()
{
mediump vec4 color = texture2D( sTexture, vTexCoord );
gl_FragColor = vec4( vColor.rgb * uColor.rgb, vColor.a * uColor.a * color.r );
}
)

Definition at line 50 of file atlas-glyph-manager-impl.cpp.

const char* anonymous_namespace{atlas-glyph-manager-impl.cpp}::FRAGMENT_SHADER_RGBA
Initial value:
uniform sampler2D sTexture;
varying mediump vec2 vTexCoord;
void main()
{
gl_FragColor = texture2D( sTexture, vTexCoord );
}
)

Definition at line 63 of file atlas-glyph-manager-impl.cpp.

const char* anonymous_namespace{atlas-glyph-manager-impl.cpp}::VERTEX_SHADER
Initial value:
attribute mediump vec2 aPosition;
attribute mediump vec2 aTexCoord;
attribute mediump vec4 aColor;
uniform mediump vec2 uOffset;
uniform mediump mat4 uMvpMatrix;
varying mediump vec2 vTexCoord;
varying mediump vec4 vColor;
void main()
{
mediump vec4 position = vec4( aPosition.xy + uOffset, 0.0, 1.0 );
gl_Position = uMvpMatrix * position;
vTexCoord = aTexCoord;
vColor = aColor;
}
)

Definition at line 32 of file atlas-glyph-manager-impl.cpp.

Dali Docs Home
Read more about Dali