exposureFactor *= kInvSampleCount;
// Blend filtered shadow and shadow from fragment normal to allow soft filtering nearby where the NdotL is zero.
- highp float shadowFactor = clamp((NdotL + 0.5) * 2.0, 0.0f, 1.0);
+ highp float shadowFactor = clamp((NdotL + 0.5) * 2.0, 0.0, 1.0);
exposureFactor = mix(0.0, exposureFactor, shadowFactor);
}
else
}
#endif
- lowp float y = texture(sTexture, texCoord).r;
- lowp float u = texture(sTextureU, texCoord).r - 0.5;
- lowp float v = texture(sTextureV, texCoord).r - 0.5;
+ lowp float y = TEXTURE(sTexture, texCoord).r;
+ lowp float u = TEXTURE(sTextureU, texCoord).r - 0.5;
+ lowp float v = TEXTURE(sTextureV, texCoord).r - 0.5;
lowp vec4 rgba;
rgba.r = y + (1.403 * v);
rgba.g = y - (0.344 * u) - (0.714 * v);
constexpr uint32_t TEXTURE_COUNT_FOR_GPU_ALPHA_MASK = 2u;
+constexpr uint32_t MINIMUM_SHADER_VERSION_SUPPORT_UNIFIED_YUV_AND_RGB = 300;
+
struct NameIndexMatch
{
const char* const name;
!mUseSynchronousSizing &&
!atlasing &&
!mImpl->mCustomShader &&
- !(mMaskingData && mMaskingData->mAlphaMaskUrl.IsValid()))
+ !(mMaskingData && mMaskingData->mAlphaMaskUrl.IsValid()) &&
+ !(DALI_UNLIKELY(Dali::Shader::GetShaderLanguageVersion() < MINIMUM_SHADER_VERSION_SUPPORT_UNIFIED_YUV_AND_RGB)))
{
return true;
}
else if(mUseFastTrackUploading)
{
- DALI_LOG_DEBUG_INFO("FastTrack : Fail to load fast track. mUrl : [%s]%s%s%s%s%s%s%s%s%s\n",
+ DALI_LOG_DEBUG_INFO("FastTrack : Fail to load fast track. mUrl : [%s]%s%s%s%s%s%s%s%s%s%s\n",
mImageUrl.GetEllipsedUrl().c_str(),
(mLoadPolicy != Toolkit::ImageVisual::LoadPolicy::ATTACHED) ? "/ mLoadPolicy != ATTACHED" : "",
(mReleasePolicy != Toolkit::ImageVisual::ReleasePolicy::DETACHED) ? "/ mReleasePolicy != DETACHED" : "",
(mUseSynchronousSizing) ? "/ useSynchronousSizing " : "",
(atlasing) ? "/ atlasing" : "",
(mImpl->mCustomShader) ? "/ use customs shader" : "",
- (mMaskingData && mMaskingData->mAlphaMaskUrl.IsValid()) ? "/ use masking url" : "");
+ (mMaskingData && mMaskingData->mAlphaMaskUrl.IsValid()) ? "/ use masking url" : "",
+ (Dali::Shader::GetShaderLanguageVersion() < MINIMUM_SHADER_VERSION_SUPPORT_UNIFIED_YUV_AND_RGB) ? "/ gles version is low" : "");
}
return false;
};