Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 43f24006d708eb6b9e0952d3cc4c58602cd08f7d
https://github.com/WebKit/WebKit/commit/43f24006d708eb6b9e0952d3cc4c58602cd08f7d
Author: Mike Wyrzykowski <[email protected]>
Date: 2026-04-29 (Wed, 29 Apr 2026)
Changed paths:
M Source/WebKit/GPUProcess/graphics/Model/ModelRenderer.swift
M Source/WebKit/GPUProcess/graphics/Model/USDModel.swift
Log Message:
-----------
Transform camera instead of model
https://bugs.webkit.org/show_bug.cgi?id=313026
rdar://175367866
Reviewed by Etienne Segonzac.
Instead of rotating all parts of the mesh by the desired transform,
we can leave the mesh as-is and apply an inverse transform to the
camera which is mathematically identical post-vertex transform.
It is both simpler and computationally less expensive than performing
the compounded rotation every render call.
* Source/WebKit/GPUProcess/graphics/Model/ModelRenderer.swift:
(Renderer.setCameraTransformForModelTransform(_:)):
* Source/WebKit/GPUProcess/graphics/Model/USDModel.swift:
(render(with:commandBuffer:)):
(updateMesh(_:)):
(setTransform(_:)):
(Material.modelTransform): Deleted.
Canonical link: https://commits.webkit.org/312334@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications