Ambient Occlusion
Apply simple 2D AO effect using height map.
Node Data | |
|---|---|
Display name | |
Ambient Occlusion | |
Internal name | |
Node_Ambient_Occlusion | |
Inheritances | |
| Node_Processor | |
| Node_Ambient_Occlusion | |
Inputs | |
surface |
Height Map |
Effect | |
float |
Height |
slider |
Intensity |
bool |
Pixel Sweep |
Blend Original | |
bool |
Blend Original |
enum |
Blendmode |
slider |
Blend Strength |
Outputs | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
| Oversample | |

Generate ambient occlusion using brightness as height.
Properties
| Height Map | Image to generate ambient occlusion from. |
| Effect | |
| Height | Maximum height, this effect the radius of the ambient occlusion. |
| Intensity | Intensity of the ambient occlusion. |
| Pixel Sweep | Use binary sweep instead of uniform sampling. |
| Blend Original | |
| Blend Original | Blend ao with the original surface. |
| Blendmode | Blend mode use for blending. |
| Blend Strength | Strength of blending. |
Related Links
- Base Code: /scripts/node_ambient_occlusion/node_ambient_occlusion.gml
- Shader [sh_sao]: /shaders/sh_sao/sh_sao.fsh