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

Functions

BaseHandle Create ()
 

Variables

const float BLUR_STRENGTH_DEFAULT = 1.0f
 
const Vector3 DEFAULT_LIGHT_POSITION (300.0f, 250.0f, 600.0f)
 
const float DEFAULT_FIELD_OF_VIEW_RADIANS = Math::PI / 4.0f
 
const Vector4 DEFAULT_SHADOW_COLOR = Vector4(0.2f, 0.2f, 0.2f, 0.8f)
 
const char *const SHADER_LIGHT_CAMERA_PROJECTION_MATRIX_PROPERTY_NAME = "uLightCameraProjectionMatrix"
 
const char *const SHADER_LIGHT_CAMERA_VIEW_MATRIX_PROPERTY_NAME = "uLightCameraViewMatrix"
 
const char *const SHADER_SHADOW_COLOR_PROPERTY_NAME = "uShadowColor"
 
const char *const BLUR_STRENGTH_PROPERTY_NAME = "BlurStrengthProperty"
 
const char *const SHADOW_COLOR_PROPERTY_NAME = "ShadowColorProperty"
 
const char *const RENDER_SHADOW_VERTEX_SOURCE
 
const char *const RENDER_SHADOW_FRAGMENT_SOURCE
 

Function Documentation

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

Definition at line 67 of file shadow-view-impl.cpp.

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

Here is the call graph for this function:

Variable Documentation

const float Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::BLUR_STRENGTH_DEFAULT = 1.0f

Definition at line 75 of file shadow-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::BLUR_STRENGTH_PROPERTY_NAME = "BlurStrengthProperty"

Definition at line 85 of file shadow-view-impl.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::DEFAULT_FIELD_OF_VIEW_RADIANS = Math::PI / 4.0f

Definition at line 78 of file shadow-view-impl.cpp.

const Vector3 Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::DEFAULT_LIGHT_POSITION(300.0f, 250.0f, 600.0f)
const Vector4 Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::DEFAULT_SHADOW_COLOR = Vector4(0.2f, 0.2f, 0.2f, 0.8f)

Definition at line 80 of file shadow-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::RENDER_SHADOW_FRAGMENT_SOURCE
Initial value:
=
"varying mediump vec2 vTexCoord;\n"
"uniform lowp vec4 uShadowColor;\n"
"uniform sampler2D sTexture;\n"
"void main()\n"
"{\n"
" lowp float alpha;\n"
" alpha = texture2D(sTexture, vec2(vTexCoord.x, vTexCoord.y)).a;\n"
" gl_FragColor = vec4(uShadowColor.rgb, uShadowColor.a * alpha);\n"
"}\n"

Definition at line 108 of file shadow-view-impl.cpp.

Referenced by UtcDaliCameraActorReadProjectionMatrix().

const char* const Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::RENDER_SHADOW_VERTEX_SOURCE
Initial value:
=
" attribute mediump vec2 aPosition;\n"
" uniform mediump mat4 uMvpMatrix;\n"
" uniform mediump mat4 uModelMatrix;\n"
" uniform vec3 uSize;\n"
" varying vec2 vTexCoord;\n"
" uniform mediump mat4 uLightCameraProjectionMatrix;\n"
" uniform mediump mat4 uLightCameraViewMatrix;\n"
"\n"
"void main()\n"
"{\n"
" mediump vec4 vertexPosition = vec4(aPosition, 0.0, 1.0);\n"
" vertexPosition.xyz *= uSize;\n"
" gl_Position = uMvpMatrix * vertexPosition;\n"
" vec4 textureCoords = uLightCameraProjectionMatrix * uLightCameraViewMatrix * uModelMatrix * vertexPosition;\n"
" vTexCoord = 0.5 + 0.5 * (textureCoords.xy/textureCoords.w);\n"
"}\n"

Definition at line 88 of file shadow-view-impl.cpp.

Referenced by UtcDaliCameraActorReadProjectionMatrix().

const char* const Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::SHADER_LIGHT_CAMERA_PROJECTION_MATRIX_PROPERTY_NAME = "uLightCameraProjectionMatrix"

Definition at line 82 of file shadow-view-impl.cpp.

Referenced by UtcDaliCameraActorReadProjectionMatrix().

const char* const Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::SHADER_LIGHT_CAMERA_VIEW_MATRIX_PROPERTY_NAME = "uLightCameraViewMatrix"

Definition at line 83 of file shadow-view-impl.cpp.

Referenced by UtcDaliCameraActorReadProjectionMatrix().

const char* const Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::SHADER_SHADOW_COLOR_PROPERTY_NAME = "uShadowColor"

Definition at line 84 of file shadow-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{shadow-view-impl.cpp}::SHADOW_COLOR_PROPERTY_NAME = "ShadowColorProperty"

Definition at line 86 of file shadow-view-impl.cpp.

Dali Docs Home
Read more about Dali