Normal Light
Light up the image using normal mapping.
Node Data | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Display name | |||||||||||||||||||||
Normal Light | |||||||||||||||||||||
Internal name | |||||||||||||||||||||
Node_Normal_Light | |||||||||||||||||||||
Inheritances | |||||||||||||||||||||
| Node_Processor | |||||||||||||||||||||
| Node_Normal_Light | |||||||||||||||||||||
Inputs | |||||||||||||||||||||
Node_Normal_Light | |||||||||||||||||||||
surface |
Surface In |
||||||||||||||||||||
surface |
Normal Map |
||||||||||||||||||||
color |
Ambient |
||||||||||||||||||||
bool |
Keep Alpha |
||||||||||||||||||||
float |
Height |
||||||||||||||||||||
surface |
Height Map |
||||||||||||||||||||
| |||||||||||||||||||||
Outputs | |||||||||||||||||||||
Node_Normal_Light | |||||||||||||||||||||
surface |
Surface Out |
||||||||||||||||||||
surface |
Light Only |
||||||||||||||||||||
Attributes | |||||||||||||||||||||
| Color Depth | |||||||||||||||||||||
This node allows you to light up the surface using normal map.

Light Properties
There're 2 types of lights: point and sun. Point light illuminate the surrouding area, sun light will light up the entire image equally.

Related Links
- Base Code: /scripts/node_normal_light/node_normal_light.gml
- Shader [sh_normal_light]: /shaders/sh_normal_light/sh_normal_light.fsh
- Shader [sh_normal_light_apply]: /shaders/sh_normal_light_apply/sh_normal_light_apply.fsh