ComfyUI Node
Wan SH Lighting Transfer (V2)
Spherical-harmonics lighting fit (L=2, 9 basis, per RGB channel) with optional relighting onto a target. Basri-Jacobs/Ramamoorthi formulation.
Wan SH Lighting Transfer (V2)
- source_image
- source_normal
- source_albedo
- target_image
- target_normal
- target_albedo
- relit_image
- sh_coeffs_json
- shading_map
◄operationfit_only►
◄rotate_yaw_deg0►
◄intensity1.00►
CategoryWanAnimatePreprocess_V2/Lighting
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| source_image | IMAGE | — | |
| source_normal | IMAGE | — | |
| operation | COMBO | fit_only | 3 options: fit_only, transfer, rotate_lights |
| rotate_yaw_deg | FLOAT | 0-180–180 | — |
| intensity | FLOAT | 1.000–4 | — |
| source_albedoopt | IMAGE | — | |
| target_imageopt | IMAGE | — | |
| target_normalopt | IMAGE | — | |
| target_albedoopt | IMAGE | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| relit_image | IMAGE | — |
| sh_coeffs_json | STRING | — |
| shading_map | IMAGE | — |