Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noppefoxwolf/technical
SCNTechnique builder
https://github.com/noppefoxwolf/technical
Last synced: 29 days ago
JSON representation
SCNTechnique builder
- Host: GitHub
- URL: https://github.com/noppefoxwolf/technical
- Owner: noppefoxwolf
- License: mit
- Created: 2019-01-01T16:51:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-01T17:27:01.000Z (almost 6 years ago)
- Last Synced: 2024-05-02T05:46:16.180Z (6 months ago)
- Language: Swift
- Size: 459 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Technical
## Usage
```swift
let lutSymbol = ImageSymbol(name: "lutSymbol", image: "lookup_amatorka.png", type: .sampler2D)
let input = Input(key: "inputTexture", value: .color)
let inputLUT = Input(key: "inputTexture2", value: .symbol(lutSymbol))
let output = Output(key: .color, value: .color)
let filter = MetalFilter(name: "apply_filter",
vertexShader: "oneInputVertex",
fragmentShader: "lookupFragment",
draw: .quad,
inputs: [input, inputLUT],
outputs: [output])
let config = SCNTechnique.Configuration(filters: [filter], symbols: [lutSymbol])
scnView.technique = SCNTechnique(config)
```## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
Technical is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'Technical'
```## Author
noppefoxwolf, [email protected]
## License
Technical is available under the MIT license. See the LICENSE file for more info.