Translucency Shader

Hey there,
does someone here have a translucency shader (modifier) for SceneKit they'd be willing to share?
Obviously we can do clear transparency via

node.opacity
material.transparency


but thats for clear materials.
What about translucent materials, like a blurry bathroom window or a page of paper? (Or the UIKit UINavigationbar.translucent)
I.e. the light goes through the material but is partly scattered.
There is a tutorial for a shader in unity.

Did anyone port a shader like this to Scenekit?
PS: Wikipedia also has a good article.

Replies

The important step to 'activate' the blending in a shader modifier is to use the pragma:

#pragma transparent

(see SCNShadable.h)