Dali 3D User Interface Engine
Functions | Variables
anonymous_namespace{utc-Dali-CameraActor.cpp} Namespace Reference

Functions

const std::string SHADER_LIGHT_CAMERA_PROJECTION_MATRIX_PROPERTY_NAME ("uLightCameraProjectionMatrix")
 
const std::string SHADER_LIGHT_CAMERA_VIEW_MATRIX_PROPERTY_NAME ("uLightCameraViewMatrix")
 

Variables

const float FLOAT_EPSILON = 0.001f
 
const float TEST_ASPECT_RATIO = 0.123f
 
const float TEST_FIELD_OF_VIEW = Radian(Degree(40.0f))
 
const float TEST_NEAR_PLANE_DISTANCE = 0.23f
 
const float TEST_FAR_PLANE_DISTANCE = 0.973f
 
const char *const RENDER_SHADOW_VERTEX_SOURCE
 
const char *const RENDER_SHADOW_FRAGMENT_SOURCE
 

Function Documentation

const std::string anonymous_namespace{utc-Dali-CameraActor.cpp}::SHADER_LIGHT_CAMERA_PROJECTION_MATRIX_PROPERTY_NAME ( "uLightCameraProjectionMatrix"  )
const std::string anonymous_namespace{utc-Dali-CameraActor.cpp}::SHADER_LIGHT_CAMERA_VIEW_MATRIX_PROPERTY_NAME ( "uLightCameraViewMatrix"  )

Variable Documentation

const float anonymous_namespace{utc-Dali-CameraActor.cpp}::FLOAT_EPSILON = 0.001f
const char* const anonymous_namespace{utc-Dali-CameraActor.cpp}::RENDER_SHADOW_FRAGMENT_SOURCE
Initial value:
=
"uniform lowp vec4 uShadowColor;\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 60 of file utc-Dali-CameraActor.cpp.

const char* const anonymous_namespace{utc-Dali-CameraActor.cpp}::RENDER_SHADOW_VERTEX_SOURCE
Initial value:
=
" uniform mediump mat4 uLightCameraProjectionMatrix;\n"
" uniform mediump mat4 uLightCameraViewMatrix;\n"
"\n"
"void main()\n"
"{\n"
" gl_Position = uProjection * uModelView * vec4(aPosition,1.0);\n"
" vec4 textureCoords = uLightCameraProjectionMatrix * uLightCameraViewMatrix * uModelMatrix * vec4(aPosition,1.0);\n"
" vTexCoord = 0.5 + 0.5 * (textureCoords.xy/textureCoords.w);\n"
"}\n"

Definition at line 49 of file utc-Dali-CameraActor.cpp.

const float anonymous_namespace{utc-Dali-CameraActor.cpp}::TEST_ASPECT_RATIO = 0.123f

Definition at line 42 of file utc-Dali-CameraActor.cpp.

Referenced by UtcDaliCameraActorGetCamera().

const float anonymous_namespace{utc-Dali-CameraActor.cpp}::TEST_FAR_PLANE_DISTANCE = 0.973f
const float anonymous_namespace{utc-Dali-CameraActor.cpp}::TEST_FIELD_OF_VIEW = Radian(Degree(40.0f))

Definition at line 43 of file utc-Dali-CameraActor.cpp.

const float anonymous_namespace{utc-Dali-CameraActor.cpp}::TEST_NEAR_PLANE_DISTANCE = 0.23f
Dali Docs Home
Read more about Dali