uniform sampler1D CelShade; varying vec3 lVec; varying vec3 norm; void main(){ vec3 lightVec = normalize(lVec); float diffuse = dot(lightVec, norm); gl_FragColor = texture1D(CelShade, diffuse); }