https://github.com/snowzurfer/scnhighlight
Scale-invariant highlight effect for SCNNodes based on SCNTechnique
https://github.com/snowzurfer/scnhighlight
arkit ios macos scenekit scntechnique swift
Last synced: 8 months ago
JSON representation
Scale-invariant highlight effect for SCNNodes based on SCNTechnique
- Host: GitHub
- URL: https://github.com/snowzurfer/scnhighlight
- Owner: snowzurfer
- License: mit
- Created: 2019-06-08T11:12:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-08T11:13:51.000Z (about 7 years ago)
- Last Synced: 2025-10-22T06:05:59.614Z (8 months ago)
- Topics: arkit, ios, macos, scenekit, scntechnique, swift
- Language: Swift
- Size: 2.82 MB
- Stars: 27
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SCNHighlight
Scale-invariant highlight effect for SCNNodes

## Description
This project can be used as inspiration (or it can brutally copy-pasted)
to achieve a scale-invariant highlight effect on your SCNNodes.
"Scale-invariant" means that the highlight border maintains the same
thickness no matter how far from the camera the SCNNode is.
This is in contrast with the other main techniques to show a border around
objects which, although work when you're at close range from the highlighted
object, they "thin out" the highlight as the object is far away.
SCNHighlight can be particularly useful to show a highlight around SCNNodes
in an ARKit app, where selected objects might be far from the camera.
## Prerequisites
* XCode >= 10
* iOS >= 12.1
## Usage
* Clone the repo
* Build
## References
* Inspired and adapted from [SCNTechniqueGlow](https://github.com/laanlabs/SCNTechniqueGlow)
## Authors
* [Alberto Taiuti](https://albertotaiuti.com)