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 2.1.0
Volumetric realtime graphics
⭐️ 52
🕓 1 year ago
iOS macOS tvOS
.package(url: "https://github.com/heestand-xyz/VoxelKit.git", from: "2.1.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: 52
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

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