Swiftpack.co -  heestand-xyz/VoxelKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
heestand-xyz/VoxelKit
Volumetric realtime graphics
.package(url: "https://github.com/heestand-xyz/VoxelKit.git", from: "1.0.0")

VoxelKit

Volumetric realtime graphics.

Runs on RenderKit

Renders

Sphere

let sphere = SphereVOX(at: .cube(16))

Gradient

let gradient = GradientVOX(at: .cube(16))
gradient.direction = .linear(.x)

Noise

let noise = NoiseVOX(at: .cube(16))

Downsampled Sphere

let sphere = SphereVOX(at: .cube(200))

let avg = AveragePIX()
avg.input = sphere

avg.pixView.frame = view.bounds
view.addSubview(avg.pixView)

Downsampled Sphere with Edge

let sphere = SphereVOX(at: .cube(200))

let edge = EdgeVOX()
edge.input = sphere
edge.strength = 10

let avg = AveragePIX()
avg.input = edge

avg.pixView.frame = view.bounds
view.addSubview(avg.pixView)

VOX

VOXContent

VOXGenerator

  • ColorVOX
  • GradientVOX
  • NoiseVOX
  • SphereVOX

VOXEffect

VOXSingleEffect

  • BlurVOX
  • EdgeVOX
  • FeedbackVOX
  • LevelsVOX
  • QuantizeVOX
  • ResolutionVOX
  • ThresholdVOX
  • TransformVOX

VOXMergerEffect

  • BlendVOX
  • CrossVOX
  • DisplaceVOX
  • LookupVOX

Data

You can access the rendered voxels with .renderedVoxels

GitHub

link
Stars: 34
Last commit: 17 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API