Actually use self_shadow_threshold
Added dot product
WIP

WIP