The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
### Fix
- vertex amplification for visionOS (fixed)
- TransparentRenderer not working on Apple Vision Pro (fixed)
Release v2.1.0
12 weeks ago
## New Features
- MainCamera setFov()
- Auto detection of fontturn
- Refactored a lot
- Snapshot Tests for all geometries
- SVG support
- Customizable mesh
- Drawing with colored vertices
## Bug Fix
- text() crashes when undefined font name is passed
- boldline()
- pixel format error for snapshot tests
- 3d model
Release v2.0.0
12 weeks ago
## Major Update!
__Fully supports visionOS Immersive Space, and many features are added!__
![outputFinalfinal](https://github.com/yukiny0811/swifty-creatives/assets/28947703/52d2d3f5-f69b-48f0-b77f-5db910615010)
## Features
- [x] Geometries
- [x] Rectangle
- [x] Circle
- [x] Box
- [x] Triangle
- [x] Line
- [x] BoldLine
- [x] 3D Model (obj)
- [x] Image
- [x] Text *new!
- [x] 3D Text *new!
- [x] UIView Object (3d view created from xib, with interactive button)
- [x] Mesh *new!
- [x] Vertex Buffer *new!
- [x] Geometries with Hit Test (you can click or hover on it)
- [x] HitTestableRect
- [x] HitTestableBox
- [x] HitTestableImg
- [x] Effects
- [x] Color
- [x] Fog
- [x] Bloom *new!
- [x] Post Process (you can create your own) *new!
- [x] Transforms
- [x] Translate
- [x] Rotate
- [x] Scale
- [x] Push & Pop
- [x] Rendering
- [x] Normal rendering with depth test
- [x] Add blend rendering
- [x] Transparent rendering with depth test
- [x] Animation
- [x] SCAnimatable property wrapper for animations
- [x] Audio
- [x] Audio Input *new!
- [x] FFT *new!
- [x] Camera
- [x] Perspective Camera
- [x] Orthographic Camera
- [x] Customizable fov *new!
- [x] View
- [x] SwiftUI View
- [x] UIKit View
- [x] visionOS Immersive Space *new!
- [x] Others
- [x] Creating original geomery class *new!
- [x] Font Rendering *new!
v2.0.0-beta.1
12 weeks ago
Beta release of v2.0.0.
# visionOS Support
<img width="1309" alt="image" src="https://github.com/yukiny0811/swifty-creatives/assets/28947703/11d080c4-e24a-4779-a3d8-47b3abea28f3">
![out](https://github.com/yukiny0811/swifty-creatives/assets/28947703/9ba122f8-7276-466c-9945-d3f25162c039)
```.swift
ImmersiveSpace(id: "ImmersiveSpace") {
CompositorLayer(configuration: ContentStageConfiguration()) { layerRenderer in
let renderer = NormalBlendRendererVision(sketch: SampleSketch(), layerRenderer: layerRenderer)
renderer.startRenderLoop()
}
}
```
fix KitSketchView
## New Feature!
- scale()
## New Feature
* preProcess()
* Snapshot Test
* iOS Test CI
* Trailing Closure for push/pop
## Fix
* improved performance
* fixed bug on PostProcessor
* fixed platform dependency
* fixed SCPacket creation
* fixed boldline()
## Removed/Changed Feature
* renamed afterDraw() to postProcess()
## About push/pop
```.swift
pushMatrix()
rotateY(Float.pi * 2 / Float(count) * Float(i))
translate(10, 0, 0)
box(1, 1, 1)
popMatrix()
```
```.swift
push {
rotateY(Float.pi * 2 / Float(count) * Float(i))
translate(10, 0, 0)
box(1, 1, 1)
}
```
### New Feature
- SCAnimationType (ease-out and linear)
### Fix
- Transparent Shader
- add img() function to Sketch
### Removed Feature
- removed setColor() from all geometries
## New Feature
- SCPacket
### Fixed Feature
- Fixed afterDraw()
- Fixed bloom post processor bug
- Fixed rendering of 3D model with no texture
### About SCPacket
This feature enables you to use Sketch functions (such as pushMatrix(), rect()) inside your class!
```.swift
class MyBox {
var pos = f3.zero
func draw(_ packet: SCPacket) {
packet.pushMatrix()
packet.translate(pos)
packet.box(1, 1, 1)
packet.popMatrix()
}
}
MyBox().draw(packet) // packet is defined in Sketch class
```
### Bloom Post Processing
![CheckMacOS 2023ๅนด-03ๆ-01ๆฅ 6 46 57](https://user-images.githubusercontent.com/28947703/221991589-90afeb21-dddc-4fe1-a635-77b323a93851.gif)