/* This shader reads indirect diffuse from a point cloud Created by: Jorge Pimentel - http://blog.jorgepimentel.com to use with 3Delight */ light JPiddPtcRead (string ptcPath = "";) { normal Nlight = normalize(Ns); color indirectdiffuse; texture3d(ptcPath, Ps, Nlight, "indirectdiffuse", indirectdiffuse); Cl = indirectdiffuse; }