We were previously using a mixture of BLEND and BLENDING in enums.
The order of the BLEND_FACTOR enums & string names was also inconsistent.
As a rule of thumb always use Blend & BLEND for namespaces & enums/constants
(not Blending or BLENDING)
Change-Id: Ia4dd6483edc56e9736436e7aa8545b40f999ba47
// blend: "AUTO",
// blendFunc : {srcFactorRGBA, destFactorRGBA},
// blendEquation : "",
- // blendColor : [1,0,0,1] } )
+ // mixColor : [1,0,0,1] } )
//
"use strict";
var value; // check required things
textureSet.SetImage( 0u, image );
renderers[index] = Renderer::New( QuadMesh(), shader );
renderers[index].SetTextures( textureSet );
- renderers[index].SetProperty( Renderer::Property::BLENDING_MODE, BlendingMode::OFF );
+ renderers[index].SetProperty( Renderer::Property::BLEND_MODE, BlendMode::OFF );
}
return renderers[index];
}
Property::Map solidColorProperty;
solidColorProperty.Insert( "rendererType", "color" );
- solidColorProperty.Insert( "blendColor", Vector4(0.f, 0.f, 0.f, 0.6f) );
+ solidColorProperty.Insert( "mixColor", Vector4(0.f, 0.f, 0.f, 0.6f) );
checkbox.SetProperty( ImageView::Property::IMAGE, solidColorProperty );
if( MODE_REMOVE_MANY != mMode &&
Geometry metaballGeom = CreateGeometry();
Renderer renderer = Renderer::New( metaballGeom, shader );
- renderer.SetProperty( Renderer::Property::BLENDING_MODE, BlendingMode::ON );
- renderer.SetBlendFunc(BlendingFactor::ONE, BlendingFactor::ONE, BlendingFactor::ONE, BlendingFactor::ONE);
+ renderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_SRC_RGB, BlendFactor::ONE );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_DEST_RGB, BlendFactor::ONE );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_SRC_ALPHA, BlendFactor::ONE );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_DEST_ALPHA, BlendFactor::ONE );
+
//Initialization of each of the metaballs
for( int i = 0; i < METABALL_NUMBER; i++ )
{
Shader shader = Shader::New( METABALL_VERTEX_SHADER, METABALL_FRAG_SHADER );
Geometry metaballGeom = CreateGeometry();
Renderer renderer = Renderer::New( metaballGeom, shader );
- renderer.SetProperty( Renderer::Property::BLENDING_MODE, BlendingMode::ON );
- renderer.SetBlendFunc(BlendingFactor::ONE, BlendingFactor::ONE, BlendingFactor::ONE, BlendingFactor::ONE);
+ renderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_SRC_RGB, BlendFactor::ONE );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_DEST_RGB, BlendFactor::ONE );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_SRC_ALPHA, BlendFactor::ONE );
+ renderer.SetProperty( Renderer::Property::BLEND_FACTOR_DEST_ALPHA, BlendFactor::ONE );
//Each metaball has a different radius
mMetaballs[0].radius = mMetaballs[0].initRadius = 0.0145f;
textureSet.SetImage( 0u, image );
renderers[index] = Renderer::New( QuadMesh(), shader );
renderers[index].SetTextures( textureSet );
- renderers[index].SetProperty( Renderer::Property::BLENDING_MODE, BlendingMode::OFF );
-
+ renderers[index].SetProperty( Renderer::Property::BLEND_MODE, BlendMode::OFF );
}
return renderers[index];
}
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.5686274509803921,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.17647058823529413,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.7411764705882353,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.23137254901960785,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.17647058823529413,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.396078431372549,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.20784313725490197,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.4196078431372549,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.47843137254901963,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.4470588235294118,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
1,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.43137254901960786,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.8196078431372549,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.6313725490196078,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.9176470588235294,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.24313725490196078,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
1,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
1,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.01568627450980392,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.2784313725490196,
"sizeAspectRatio": false,
"background": {
"rendererType": "color",
- "blendColor": [1,1,1,1]
+ "mixColor": [1,1,1,1]
},
"color": [
0.1568627450980392,
"sizeModeFactor": [ 0.5, 0.333333333333, 1 ],
"background":{
"rendererType": "color",
- "blendColor": [ 0.8, 0, 0.2, 1 ]
+ "mixColor": [ 0.8, 0, 0.2, 1 ]
}
},
"sizeModeFactor": [ 0.5, 0.333333333333, 1 ],
"background":{
"rendererType": "color",
- "blendColor": [ 1, 1, 0, 1 ]
+ "mixColor": [ 1, 1, 0, 1 ]
}
},
"anchorPoint": [0.5, 1, 0.5],
"background": {
"rendererType": "color",
- "blendColor": [0.71, 0, 0, 1]
+ "mixColor": [0.71, 0, 0, 1]
},
"selected": false,
"signals": [
"anchorPoint": [0.5, 1, 0.5],
"background": {
"rendererType": "color",
- "blendColor": [0, 0.14200000000000013, 0.71, 0.7]
+ "mixColor": [0, 0.14200000000000013, 0.71, 0.7]
},
"signals": [
{
"anchorPoint": [0.5, 1, 0.5],
"background": {
"rendererType": "color",
- "blendColor": [0.057450000000000064, 0.3, 0.0030000000000000027, 0.7]
+ "mixColor": [0.057450000000000064, 0.3, 0.0030000000000000027, 0.7]
},
"signals": [
{
"type":"TableView",
"background":{
"rendererType": "color",
- "blendColor": [0.5,0.5,0,1]
+ "mixColor": [0.5,0.5,0,1]
},
"parentOrigin": "CENTER",
"size":[400,400,1],