ok, I know this is a long gone topic - but how about cookeScale in general … struggling with syntax:
var ctU = this.intensityLL*2;
var ctV = this.intensityLL/3;
var tmpCooksc = new pc.Vec2(ctU, ctV);
this.larFlimmer.light.cookieScale = tmpCooksc;
console.log("lightCook: "+tmpCooksc.u);
- and tried as function also
this.larFlimmer.light.cookieScale(tmpCooksc);
- none working