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

Functions

BaseHandle Create ()
 
const char *const EFFECT_IMAGE_NAME ("sEffect")
 

Variables

const float BLOOM_THRESHOLD_DEFAULT = 0.25f
 
const float BLOOM_BLUR_STRENGTH_DEFAULT = 1.0f
 
const float BLOOM_INTENSITY_DEFAULT = 1.0f
 
const float IMAGE_INTENSITY_DEFAULT = 1.0f
 
const float BLOOM_SATURATION_DEFAULT = 1.0f
 
const float IMAGE_SATURATION_DEFAULT = 1.0f
 
const unsigned int BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_NUM_SAMPLES = 5
 
const float BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_BLUR_BELL_CURVE_WIDTH = 1.5f
 
const Pixel::Format BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_RENDER_TARGET_PIXEL_FORMAT = Pixel::RGBA8888
 
const float BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_BLUR_FADE_IN = 1.0f
 
const float BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_DOWNSAMPLE_WIDTH_SCALE = 0.5f
 
const float BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_DOWNSAMPLE_HEIGHT_SCALE = 0.5f
 
const float ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f
 
const char *const BLOOM_BLUR_STRENGTH_PROPERTY_NAME = "BlurStrengthProperty"
 
const char *const BLOOM_THRESHOLD_PROPERTY_NAME = "uBloomThreshold"
 
const char *const RECIP_ONE_MINUS_BLOOM_THRESHOLD_PROPERTY_NAME = "uRecipOneMinusBloomThreshold"
 
const char *const BLOOM_INTENSITY_PROPERTY_NAME = "uBloomIntensity"
 
const char *const BLOOM_SATURATION_PROPERTY_NAME = "uBloomSaturation"
 
const char *const IMAGE_INTENSITY_PROPERTY_NAME = "uImageIntensity"
 
const char *const IMAGE_SATURATION_PROPERTY_NAME = "uImageSaturation"
 
const char *const BLOOM_EXTRACT_FRAGMENT_SOURCE
 
const char *const COMPOSITE_FRAGMENT_SOURCE
 

Function Documentation

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

Definition at line 52 of file bloom-view-impl.cpp.

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

Here is the call graph for this function:

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::EFFECT_IMAGE_NAME ( "sEffect"  )

Variable Documentation

const float Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f
const float Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_BLUR_STRENGTH_DEFAULT = 1.0f

Definition at line 62 of file bloom-view-impl.cpp.

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

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

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_EXTRACT_FRAGMENT_SOURCE
Initial value:
=
"varying mediump vec2 vTexCoord;\n"
"uniform sampler2D sTexture;\n"
"uniform lowp vec4 uColor;\n"
"uniform mediump float uBloomThreshold;\n"
"uniform mediump float uRecipOneMinusBloomThreshold;\n"
"void main()\n"
"{\n"
" mediump vec4 col;\n"
" col = texture2D(sTexture, vTexCoord);\n"
" col = (col - uBloomThreshold) * uRecipOneMinusBloomThreshold;\n"
" gl_FragColor = clamp(col, 0.0, 1.0);\n"
"}\n"

Definition at line 93 of file bloom-view-impl.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_BLUR_BELL_CURVE_WIDTH = 1.5f

Definition at line 70 of file bloom-view-impl.cpp.

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

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

const float Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_DOWNSAMPLE_HEIGHT_SCALE = 0.5f

Definition at line 74 of file bloom-view-impl.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_DOWNSAMPLE_WIDTH_SCALE = 0.5f

Definition at line 73 of file bloom-view-impl.cpp.

const unsigned int Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_NUM_SAMPLES = 5

Definition at line 69 of file bloom-view-impl.cpp.

const Pixel::Format Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_GAUSSIAN_BLUR_VIEW_DEFAULT_RENDER_TARGET_PIXEL_FORMAT = Pixel::RGBA8888

Definition at line 71 of file bloom-view-impl.cpp.

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

Definition at line 63 of file bloom-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_INTENSITY_PROPERTY_NAME = "uBloomIntensity"

Definition at line 81 of file bloom-view-impl.cpp.

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

Definition at line 65 of file bloom-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_SATURATION_PROPERTY_NAME = "uBloomSaturation"

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

const float Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_THRESHOLD_DEFAULT = 0.25f

Definition at line 61 of file bloom-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::BLOOM_THRESHOLD_PROPERTY_NAME = "uBloomThreshold"

Definition at line 79 of file bloom-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::COMPOSITE_FRAGMENT_SOURCE
Initial value:
=
"precision mediump float;\n"
"varying mediump vec2 vTexCoord;\n"
"uniform sampler2D sTexture;\n"
"uniform sampler2D sEffect;\n"
"uniform lowp vec4 uColor;\n"
"uniform float uBloomIntensity;\n"
"uniform float uImageIntensity;\n"
"uniform float uBloomSaturation;\n"
"uniform float uImageSaturation;\n"
"vec4 ChangeSaturation(vec4 col, float sat)\n"
"{\n"
" float grey = dot(col.rgb, vec3(0.3, 0.6, 0.1));\n"
" return mix(vec4(grey, grey, grey, 1.0), col, sat);\n"
"}\n"
"void main()\n"
"{\n"
" mediump vec4 image;\n"
" mediump vec4 bloom;\n"
" image = texture2D(sTexture, vTexCoord);\n"
" bloom = texture2D(sEffect, vTexCoord);\n"
" image = ChangeSaturation(image, uImageSaturation) * uImageIntensity;\n"
" bloom = ChangeSaturation(bloom, uBloomSaturation) * uBloomIntensity;\n"
" image *= 1.0 - clamp(bloom, 0.0, 1.0);\n"
" gl_FragColor = image + bloom;\n"
"}\n"

Definition at line 107 of file bloom-view-impl.cpp.

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

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

Definition at line 64 of file bloom-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::IMAGE_INTENSITY_PROPERTY_NAME = "uImageIntensity"

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

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

Definition at line 66 of file bloom-view-impl.cpp.

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::IMAGE_SATURATION_PROPERTY_NAME = "uImageSaturation"

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

const char* const Dali::Toolkit::Internal::anonymous_namespace{bloom-view-impl.cpp}::RECIP_ONE_MINUS_BLOOM_THRESHOLD_PROPERTY_NAME = "uRecipOneMinusBloomThreshold"

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

Dali Docs Home
Read more about Dali