Draw Cross Section
Map the brightness of pixels on a linear axis into a surface.
Node Data | |
|---|---|
Display name | |
Draw Cross Section | |
Internal name | |
Node_Cross_Section | |
Inheritances | |
| Node_Processor | |
| Node_Cross_Section | |
Inputs | |
Node_Cross_Section | |
surface |
Surface In |
surface |
Mask |
enum |
Axis |
slider |
Position |
enum |
Mode |
bool |
Anti-Aliasing |
Outputs | |
Node_Cross_Section | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
This node scan the input image along the specified axis. For each pixel, it will calculate the brightness value and output it as a new image.
Properties
Axis
Axis to scan the image along.
Position
Position of the scan line.
Mode
Rendering mode.
- BW: Output black and white image.
- Colored: Output cross section blend with the sampled color.
Related Links
- Base Code: /scripts/node_cross_section/node_cross_section.gml
- Shader [sh_cross_section]: /shaders/sh_cross_section/sh_cross_section.fsh