Change-Id: I1a885d54a18113547b6af9bb1437d43c21a00de4
Vector2 halfStageSize = Stage::GetCurrent().GetSize()*0.5f;
gradientMap.Insert("startPosition", halfStageSize);
gradientMap.Insert("endPosition", -halfStageSize );
Vector2 halfStageSize = Stage::GetCurrent().GetSize()*0.5f;
gradientMap.Insert("startPosition", halfStageSize);
gradientMap.Insert("endPosition", -halfStageSize );
- gradientMap.Insert("units", "userSpace");
+ gradientMap.Insert("units", "USER_SPACE");
break;
}
case 2: // radial gradient with units as objectBoundingBox
break;
}
case 2: // radial gradient with units as objectBoundingBox
Vector2 stageSize = Stage::GetCurrent().GetSize();
gradientMap.Insert("center", stageSize*0.5f);
gradientMap.Insert("radius", stageSize.Length());
Vector2 stageSize = Stage::GetCurrent().GetSize();
gradientMap.Insert("center", stageSize*0.5f);
gradientMap.Insert("radius", stageSize.Length());
- gradientMap.Insert("units", "userSpace");
+ gradientMap.Insert("units", "USER_SPACE");
//Possible shader options.
const char * const SHADER_TYPE[] =
{
//Possible shader options.
const char * const SHADER_TYPE[] =
{
- "allTextures",
- "diffuseTexture",
- "textureless"
+ "ALL_TEXTURES",
+ "DIFFUSE_TEXTURE",
+ "TEXTURELESS"
};
//Files for background and toolbar
};
//Files for background and toolbar
"rendererType": "gradient",
"center": [240, 400],
"radius": 932,
"rendererType": "gradient",
"center": [240, 400],
"radius": 932,
"stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
}
"stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
}
"rendererType": "gradient",
"center": [360, 640],
"radius": 1468,
"rendererType": "gradient",
"center": [360, 640],
"radius": 1468,
"stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
}
"stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
}