Brick Shader Light Question

Hi everybody,
in the brick shader example from the Orange Book (v. 1.20) there is the custom computation of light. When using that shader in OF the lights doesn’t get computed and I get a black shape, even if the only light uniform passed to the shader is the one about light’s position. In order to make that shader work and compute the light, what should I do?
Thank anyone for his help