Questions tagged [scnprogram]
5 questions
5
votes
1 answer
Which are the right Matrix Values to use in a metal shader passed by a SCNProgram to get a correct chrome like reflection
I am working on an App, that should render a chrome-style reflective sphere-like object inside a skybox (using a six faced cube map).
I am doing this in Swift using Scenekit with different approaches.
Everything is fine and perfectly reflected (see…

ZAY
- 3,882
- 2
- 13
- 21
2
votes
0 answers
SCNProgram read from depth buffer
I am investigating some advanced rendering in Scenekit, and what SCNTechnique and SCNProgram can be used for.
I would like to implement a multi-pass render like so:
First; render the full scene using the in-built PBR shader,
Second; render a single…

Nick
- 261
- 2
- 8
2
votes
1 answer
SCNProgram Vertex Shader – retrieve node clip space coordinate
I'm fairly new to Shader Development and currently working on a SCNProgram to replace the rendering of a plane geometry.
Within the programs vertex shader I'd like to access the position (or basically anchor position) point of the node/mesh as a…

arthurschiller
- 316
- 2
- 9
0
votes
1 answer
Odd border line on SCNPlane when alpha is set to 0
I have an odd behaviour on the borders of SCNPlane, I trust any geometry would have that, which looks like similar to SceneKit - Remove stitching line in edges borders
I set transparency via SCNProgram and in fragment I run
float alphaBloom(float2…

czane
- 392
- 1
- 6
- 18
0
votes
1 answer
SceneKit SCNProgram for a Billboard Shader in Metal
I'm looking for an example of a billboard texture shader that I can use with SceneKit.
I have a landscape of tiny red dots that I need to render. The dots all need to face the camera head-on.
Using SceneKit, I've managed to render the landscape's…

Mark Bridges
- 8,228
- 4
- 50
- 65