Dali 3D User Interface Engine
Functions | Variables
Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp} Namespace Reference

Functions

BaseHandle Create ()
 
 DALI_TYPE_REGISTRATION_BEGIN (Toolkit::Model3dView, Toolkit::Control, Create)
 

Variables

const char * SIMPLE_VERTEX_SHADER
 
const char * SIMPLE_FRAGMENT_SHADER
 
const char * VERTEX_SHADER
 
const char * FRAGMENT_SHADER
 
const char * NRMMAP_VERTEX_SHADER
 
const char * NRMMAP_FRAGMENT_SHADER
 

Function Documentation

BaseHandle Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::Create ( )

Definition at line 47 of file model3d-view-impl.cpp.

References Dali::Toolkit::Model3dView::New().

Here is the call graph for this function:

Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::DALI_TYPE_REGISTRATION_BEGIN ( Toolkit::Model3dView  ,
Toolkit::Control  ,
Create   
)

Variable Documentation

const char* Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::FRAGMENT_SHADER
Initial value:
precision mediump float;\n
varying mediump vec2 vTexCoord;\n
varying mediump vec3 vIllumination;\n
varying mediump float vSpecular;\n
uniform sampler2D sDiffuse;\n
uniform lowp vec4 uColor;\n
\n
void main()\n
{\n
vec4 texture = texture2D( sDiffuse, vTexCoord );\n
gl_FragColor.rgb = vIllumination.rgb * texture.rgb * uColor.rgb + vSpecular * 0.3;\n
gl_FragColor.a = texture.a * uColor.a;\n
}\n
)

Definition at line 176 of file model3d-view-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::NRMMAP_FRAGMENT_SHADER
Initial value:
precision mediump float;\n
varying mediump vec2 vTexCoord;\n
varying mediump vec3 vLightDirection;\n
varying mediump vec3 vHalfVector;\n
uniform sampler2D sDiffuse;\n
uniform sampler2D sNormal;\n
uniform sampler2D sGloss;\n
uniform lowp vec4 uColor;\n
\n
void main()\n
{\n
vec4 texture = texture2D( sDiffuse, vTexCoord );\n
vec4 nrmMap = texture2D( sNormal, vTexCoord ) * 2.0 - 1.0;\n
vec4 glossMap = texture2D( sGloss, vTexCoord );\n
\n
vec3 normalizedLightDirection = normalize(vLightDirection);\n
float lightDiffuse = max( 0.0, dot( nrmMap.xyz, normalizedLightDirection ) );\n
lightDiffuse = lightDiffuse * 0.5 + 0.5;\n
\n
float shininess = pow (max (dot (vHalfVector, nrmMap.xyz), 0.0), 16.0) ;
\n
gl_FragColor.rgb = texture.rgb * uColor.rgb * lightDiffuse + shininess * glossMap.rgb;\n
gl_FragColor.a = texture.a * uColor.a;\n
}\n
)

Definition at line 247 of file model3d-view-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::NRMMAP_VERTEX_SHADER

Definition at line 194 of file model3d-view-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::SIMPLE_FRAGMENT_SHADER
Initial value:
precision mediump float;\n
varying mediump vec3 vIllumination;\n
uniform lowp vec4 uColor;\n
\n
void main()\n
{\n
gl_FragColor.rgb = vIllumination.rgb * uColor.rgb;\n
gl_FragColor.a = uColor.a;\n
}\n
)

Definition at line 109 of file model3d-view-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::SIMPLE_VERTEX_SHADER

Definition at line 72 of file model3d-view-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{model3d-view-impl.cpp}::VERTEX_SHADER

Definition at line 123 of file model3d-view-impl.cpp.

Dali Docs Home
Read more about Dali