Hello.
I'm seeing an issue I don't understand.
If I add a layer, and a shadow - I see the shadow.
If I then rotate the layer:
[child setValue:[NSNumber numberWithFloat:-46]
forKeyPath:@"transform.rotation.x"];
[child setValue:[NSNumber numberWithFloat:46]
forKeyPath:@"transform.rotation.y"];
And then turn on some depth / perspective on it's superlayer like so:
- (IBAction) toggleDepth:(id)sender {
CALayer *layer = workbench.workspaceLayer;
CATransform3D trans = layer.sublayerTransform;
float val = 420;
trans.m34 = 1 / - val;
layer.sublayerTransform = trans;
}
Then both the content of the layer, and it's shadow disappear.
I have made an example to show just this problem alone. Is this a
known bug with CA, or am I doing something stupid? The example
contains about 77 lines of code total.
http://downloads.shinywhitebox.com/CoreAnimShadow.zip
--
Regards,
Neil Clayton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden
This email sent to email@hidden