Skip to content

Commit

Permalink
Fix MTLViewport znear, remove clear color updates.
Browse files Browse the repository at this point in the history
Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm committed Dec 29, 2024
1 parent b0dfb5b commit a8bdc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/UsdView/Hydra/MTL/Hydra+MTLRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import PixarUSD
originY: 0.0,
width: Double(view.drawableSize.width),
height: Double(view.drawableSize.height),
znear: -1.0,
znear: 0.0,
zfar: 1.0
)
)
Expand Down
2 changes: 1 addition & 1 deletion Sources/UsdView/Hydra/MTL/Hydra+MTLView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import PixarUSD

public func updateNSView(_ view: MTKView, context: Context)
{
view.clearColor = MTLClearColorMake(rgba.0, rgba.1, rgba.2, rgba.3)
// view.clearColor = MTLClearColorMake(rgba.0, rgba.1, rgba.2, rgba.3)

renderer.draw(in: view)
hydra.render(rgba: rgba)
Expand Down

0 comments on commit a8bdc38

Please sign in to comment.