Swiftpack.co - heestand-xyz/VoxelKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by heestand-xyz.
heestand-xyz/VoxelKit 1.0.1
Volumetric realtime graphics
⭐️ 37
🕓 6 weeks ago
iOS macOS tvOS
.package(url: "https://github.com/heestand-xyz/VoxelKit.git", from: "1.0.1")

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: 37
Last commit: Yesterday
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Dependencies

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