Getting a shader to use only the closest light

can a shader be made to use the closest light to the spatial it is applied



edit: nevermind figured "something" out :wink: