@@ -699,9 +699,6 @@ TextureVertex* Caches::getRegionMesh() {
699699// /////////////////////////////////////////////////////////////////////////////
700700
701701void Caches::initTempProperties () {
702- propertyAmbientShadowStrength = 12 ;
703- propertySpotShadowStrength = 48 ;
704-
705702 propertyLightDiameter = -1 .0f ;
706703 propertyLightPosY = -1 .0f ;
707704 propertyLightPosZ = -1 .0f ;
@@ -710,15 +707,7 @@ void Caches::initTempProperties() {
710707
711708void Caches::setTempProperty (const char * name, const char * value) {
712709 ALOGD (" setting property %s to %s" , name, value);
713- if (!strcmp (name, " ambientShadowStrength" )) {
714- propertyAmbientShadowStrength = atoi (value);
715- ALOGD (" ambient shadow strength = 0x%x out of 0xff" , propertyAmbientShadowStrength);
716- return ;
717- } else if (!strcmp (name, " spotShadowStrength" )) {
718- propertySpotShadowStrength = atoi (value);
719- ALOGD (" spot shadow strength = 0x%x out of 0xff" , propertySpotShadowStrength);
720- return ;
721- } else if (!strcmp (name, " ambientRatio" )) {
710+ if (!strcmp (name, " ambientRatio" )) {
722711 propertyAmbientRatio = fmin (fmax (atof (value), 0.0 ), 10.0 );
723712 ALOGD (" ambientRatio = %.2f" , propertyAmbientRatio);
724713 return ;
@@ -734,10 +723,6 @@ void Caches::setTempProperty(const char* name, const char* value) {
734723 propertyLightPosZ = fmin (fmax (atof (value), 0.0 ), 3000.0 );
735724 ALOGD (" lightPos Z = %.2f" , propertyLightPosZ);
736725 return ;
737- } else if (!strcmp (name, " extraRasterBucket" )) {
738- float bucket = atof (value);
739- propertyExtraRasterBuckets.push_back (bucket);
740- return ;
741726 }
742727 ALOGD (" failed" );
743728}
0 commit comments