Property support for light positioning.
Tune up the light size to make it look better.
Change-Id: I139a05f3dd53dacbe55759b91188f0e1cc2c7f80
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h
index 01e8d84..e7ba9ac 100644
--- a/libs/hwui/Caches.h
+++ b/libs/hwui/Caches.h
@@ -359,6 +359,14 @@
bool propertyEnable3d;
bool propertyDirtyViewport; // flag set when dirtying the viewport
float propertyCameraDistance;
+
+ // These scaling factors range from 0 to 1, to scale the light position
+ // within the bound of (screenwidth, screenheight, max(screenwidth, screenheight));
+ // The default scale is (0.5, 0, 1) which put the light at
+ // (screenwidth / 2, 0, max(screenwidth, screenheight)).
+ float propertyLightPosXScale;
+ float propertyLightPosYScale;
+ float propertyLightPosZScale;
int propertyShadowStrength;
private: