Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b048497cedd9e7cde785648c11562f9192b7c829
      
https://github.com/WebKit/WebKit/commit/b048497cedd9e7cde785648c11562f9192b7c829
  Author: Phipson Lee <[email protected]>
  Date:   2025-04-09 (Wed, 09 Apr 2025)

  Changed paths:
    M Source/WebKit/UIProcess/Model/ModelPresentationManagerProxy.mm
    M Source/WebKit/UIProcess/ios/WKPageHostedModelView.h
    M Source/WebKit/UIProcess/ios/WKPageHostedModelView.mm
    M Source/WebKit/WebKitSwift/RealityKit/RKEntity.swift

  Log Message:
  -----------
      Adopt Portal Crossing Component when Dragging Model
    https://bugs.webkit.org/show_bug.cgi?id=290949
    rdar://146805867

    Reviewed by Ada Chan.

    This PR adds a portal crossing component to the model view such that when a 
drag is detected
    we enable it to prevent the model from clipping as it lifts off the page. 
We also add a
    virtual environment probe component such that lighting can blend as the 
model crosses the
    portal on lift.

    * Source/WebKit/UIProcess/Model/ModelPresentationManagerProxy.mm:
    (WebKit::ModelPresentationManagerProxy::setUpModelView):
    - Adds portal crossing to the view
    (WebKit::ModelPresentationManagerProxy::startDragForModel):
    - Added call to enable portal crossing before the drag starts
    (WebKit::ModelPresentationManagerProxy::doneWithCurrentDragSession):
    - Disables portal crossing after drag ends
    * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
    (-[WKContentView dragInteraction:previewForLiftingItem:session:]):
    * Source/WebKit/UIProcess/ios/WKPageHostedModelView.mm:
    (-[WKPageHostedModelView init]):
    (-[WKPageHostedModelView setPortalCrossing:]):
    - New API for toggling portal crossing component for the entity
    * Source/WebKit/WebKitSwift/RealityKit/RKEntity.swift:
    (WKSRKEntity.applyIBL(_:completion:)):
    - Uses virtual environment probe for lighting

Canonical link: https://commits.webkit.org/293508@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to