[webkit-changes] [WebKit/WebKit] 05055d: Support setting IBL in WKSRKEntity

Ada Chan noreply at github.com
Thu Oct 10 07:36:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 05055da95c4f2fd33e16ce11393085acc98c0d54
      https://github.com/WebKit/WebKit/commit/05055da95c4f2fd33e16ce11393085acc98c0d54
  Author: Ada Chan <adachan at apple.com>
  Date:   2024-10-10 (Thu, 10 Oct 2024)

  Changed paths:
    M Source/WebKit/WebKitSwift/RealityKit/RKEntity.swift
    M Source/WebKit/WebKitSwift/RealityKit/RealityKitBridging.h

  Log Message:
  -----------
  Support setting IBL in WKSRKEntity
https://bugs.webkit.org/show_bug.cgi?id=281185
rdar://137003306

Reviewed by Mike Wyrzykowski.

Create a CGImage from the image data, then create a TextureResource from it,
and create an EnvironmentResource from that texture resource.
Then set up the environment lighting for the model entity with that
environment resource via RealityKit ImageBasedLight component.

* Source/WebKit/WebKitSwift/RealityKit/RKEntity.swift:
(WKSRKEntity.applyIBL(_:)):
(WKSRKEntity.removeIBL):
* Source/WebKit/WebKitSwift/RealityKit/RealityKitBridging.h:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list