Nodes/ComfyUI-WanAnimatePreprocessV2/Wan SH Lighting Transfer (V2)
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.

By Code2Collapse·Created 7 months ago·Updated 12 days ago· 17
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)

NameTypeDefaultDescription
source_imageIMAGE
source_normalIMAGE
operationCOMBOfit_only3 options: fit_only, transfer, rotate_lights
rotate_yaw_degFLOAT0-180–180
intensityFLOAT1.000–4
source_albedooptIMAGE
target_imageoptIMAGE
target_normaloptIMAGE
target_albedooptIMAGE

Outputs (3)

NameTypeDescription
relit_imageIMAGE
sh_coeffs_jsonSTRING
shading_mapIMAGE