Physically Accurate Lens Dirt

Physically Accurate Lens Dirt

A node for adding "physically accurate" lens dirt to an image intensity = intensity of the dirt texture to blend on top of the origional image threshold = Where the dirt will show up, like the max white point dof_kernel_size = blur of the dirt texture, if you are using a reshade texture you may not need to blur dirt_scale = scale of the dirt texture, if the spots art to small scale it up, if using a reshade texture set to 1

Pack: Photography Nodes

custom_nodes.ComfyUI_Photography_Nodes

Inputs (7)

NameTypeRequired
imageIMAGErequired
dirt_textureIMAGErequired
bokeh_textureIMAGErequired
intensityFLOATrequired
thresholdFLOATrequired
dof_kernel_sizeINTrequired
dirt_scaleINTrequired

Outputs (1)

NameType
IMAGEIMAGE