The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.
Rust electron-alternativegame-engineglobal-illuminationgraphicsjavascript-runtimemetalpath-tracingray-tracingreal-time-renderingrenderingrustthreejstypescriptvoxelvulkanwebgpuwgpu
[package]
name = "threert-canvas2d"
description = "Canvas 2D, image decoding/encoding, and text layout for ThreeRT runtime (CoreGraphics/CoreText on macOS; pure-Rust tiny-skia/cosmic-text/image elsewhere)"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
jsc.workspace = true
rt.workspace = true
[target.'cfg(target_os = "macos")'.dependencies]
objc2-core-foundation = { version = "0.3", default-features = false, features = ["std", "CFBase", "CFString", "CFArray", "CFDictionary", "CFNumber", "CFData", "CFURL", "CFAttributedString", "CFCGTypes", "CFCharacterSet", "CFError", "CFLocale"] }
objc2-core-graphics = { version = "0.3", default-features = false, features = ["std", "CGAffineTransform", "CGBase", "CGBitmapContext", "CGColor", "CGColorSpace", "CGContext", "CGDataProvider", "CGFont", "CGGeometry", "CGGradient", "CGImage", "CGPath"] }
objc2-core-text = { version = "0.3", default-features = false, features = ["std", "CTFont", "CTFontDescriptor", "CTFontManager", "CTFontTraits", "CTLine", "CTRun", "CTStringAttributes", "CTTypesetter", "objc2-core-graphics"] }
objc2-image-io = { version = "0.3", default-features = false, features = ["std", "CGImageSource", "CGImageDestination", "CGImageProperties", "objc2-core-graphics"] }
[target.'cfg(not(target_os = "macos"))'.dependencies]
tiny-skia = "0.11"
cosmic-text = "0.12"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp"] }