skia2/resources/skottie/skottie-sphere-transparecy.json
Florin Malita 2418c88fb1 [skottie] Fix Sphere effect lighting for transparency
Colors are premultiplied, so the specular component (which is additive)
must be modulated by alpha explicitly.

Change-Id: If5f7b456b0ce518b1806e9b1e754229c3a6d0981
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/539559
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
2022-05-12 18:45:11 +00:00

1 line
4.5 KiB
JSON

{"v":"5.8.3","fr":60,"ip":0,"op":601,"w":500,"h":500,"nm":"sphere text","ddd":1,"assets":[{"id":"comp_0","nm":"daily planet","fr":30,"layers":[{"ddd":1,"ind":1,"ty":5,"nm":"Daily Planet","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"rx":{"a":0,"k":0,"ix":8},"ry":{"a":0,"k":0,"ix":9},"rz":{"a":0,"k":0,"ix":10},"or":{"a":0,"k":[0,0,0],"ix":7},"p":{"a":0,"k":[250,275,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"t":{"d":{"k":[{"s":{"s":109,"f":"Bangers-Regular","t":"Daily Planet","ca":0,"j":2,"tr":0,"lh":130.800003051758,"ls":0,"fc":[1,0,0]},"t":0}]},"p":{},"m":{"g":1,"a":{"a":0,"k":[0,0],"ix":2}},"a":[{"nm":"y","s":{"t":0,"xe":{"a":0,"k":0,"ix":7},"ne":{"a":0,"k":0,"ix":8},"a":{"a":0,"k":100,"ix":4},"b":1,"rn":0,"sh":1,"sm":{"a":0,"k":100,"ix":6},"e":{"a":0,"k":10,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":180,"s":[-10]},{"t":270,"s":[100]}],"ix":3},"r":1},"a":{"p":{"a":0,"k":[0,-100,0],"ix":2}}},{"nm":"op","s":{"t":0,"xe":{"a":0,"k":0,"ix":7},"ne":{"a":0,"k":0,"ix":8},"a":{"a":0,"k":100,"ix":4},"b":1,"rn":0,"sh":1,"sm":{"a":0,"k":100,"ix":6},"e":{"a":0,"k":20,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":450,"s":[-20]},{"t":600,"s":[100]}],"ix":3},"r":1},"a":{"o":{"a":0,"k":0,"ix":9}}}]},"ip":0,"op":600,"st":0,"bm":0}]}],"fonts":{"list":[{"origin":0,"fPath":"","fClass":"","fFamily":"Bangers","fWeight":"","fStyle":"Regular","fName":"Bangers-Regular","ascent":76.4484497718513}]},"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"daily planet","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,250,0],"ix":2,"l":2},"a":{"a":0,"k":[250,250,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":5,"nm":"CC Sphere","np":28,"mn":"CC Sphere","ix":1,"en":1,"ef":[{"ty":6,"nm":"Rotation","mn":"CC Sphere-0001","ix":1,"v":0},{"ty":0,"nm":"Rotation X","mn":"CC Sphere-0002","ix":2,"v":{"a":0,"k":-28,"ix":2}},{"ty":0,"nm":"Rotation Y","mn":"CC Sphere-0003","ix":3,"v":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":600,"s":[-720]}],"ix":3}},{"ty":0,"nm":"Rotation Z","mn":"CC Sphere-0004","ix":4,"v":{"a":0,"k":0,"ix":4}},{"ty":7,"nm":"Rotation Order","mn":"CC Sphere-0026","ix":5,"v":{"a":0,"k":1,"ix":5}},{"ty":6,"nm":"","mn":"CC Sphere-0005","ix":6,"v":0},{"ty":0,"nm":"Radius","mn":"CC Sphere-0006","ix":7,"v":{"a":0,"k":200,"ix":7}},{"ty":3,"nm":"Offset","mn":"CC Sphere-0007","ix":8,"v":{"a":0,"k":[250,250],"ix":8}},{"ty":7,"nm":"Render","mn":"CC Sphere-0008","ix":9,"v":{"a":0,"k":1,"ix":9}},{"ty":6,"nm":"Light","mn":"CC Sphere-0009","ix":10,"v":0},{"ty":0,"nm":"Light Intensity","mn":"CC Sphere-0010","ix":11,"v":{"a":0,"k":100,"ix":11}},{"ty":2,"nm":"Light Color","mn":"CC Sphere-0011","ix":12,"v":{"a":0,"k":[0.764705896378,1,1,1],"ix":12}},{"ty":0,"nm":"Light Height","mn":"CC Sphere-0012","ix":13,"v":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[-100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":300,"s":[100]},{"t":600,"s":[-100]}],"ix":13}},{"ty":0,"nm":"Light Direction","mn":"CC Sphere-0013","ix":14,"v":{"a":1,"k":[{"t":0,"s":[-90],"h":1},{"t":300,"s":[90],"h":1}],"ix":14}},{"ty":6,"nm":"","mn":"CC Sphere-0014","ix":15,"v":0},{"ty":6,"nm":"Shading","mn":"CC Sphere-0015","ix":16,"v":0},{"ty":0,"nm":"Ambient","mn":"CC Sphere-0016","ix":17,"v":{"a":0,"k":10,"ix":17}},{"ty":0,"nm":"Diffuse","mn":"CC Sphere-0017","ix":18,"v":{"a":0,"k":100,"ix":18}},{"ty":0,"nm":"Specular","mn":"CC Sphere-0018","ix":19,"v":{"a":0,"k":100,"ix":19}},{"ty":0,"nm":"Roughness","mn":"CC Sphere-0019","ix":20,"v":{"a":0,"k":0.209,"ix":20}},{"ty":0,"nm":"Metal","mn":"CC Sphere-0020","ix":21,"v":{"a":0,"k":0,"ix":21}},{"ty":0,"nm":"Reflective","mn":"CC Sphere-0021","ix":22,"v":{"a":0,"k":0,"ix":22}},{"ty":10,"nm":"Reflection Map","mn":"CC Sphere-0022","ix":23,"v":{"a":0,"k":1,"ix":23}},{"ty":7,"nm":"Internal Shadows","mn":"CC Sphere-0023","ix":24,"v":{"a":0,"k":0,"ix":24}},{"ty":7,"nm":"Transparency Falloff","mn":"CC Sphere-0024","ix":25,"v":{"a":0,"k":0,"ix":25}},{"ty":6,"nm":"","mn":"CC Sphere-0025","ix":26,"v":0}]}],"w":500,"h":500,"ip":0,"op":600,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":1,"nm":"Black Solid 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,250,0],"ix":2,"l":2},"a":{"a":0,"k":[250,250,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"sw":500,"sh":500,"sc":"#000000","ip":0,"op":601,"st":0,"bm":0}],"markers":[]}