New Pointlight Object position Output

Tags: #<Tag:0x00007f2512f1df68>

Hi,

I figured that the new Pointlight OP is missing the second render output for the object on the same position as the light. I liked that feature and find it pretty handy. I hope it can be reintegrated to the new version of the Pointlight.

Thanks in advance

Cheers, dino

Just added the missing Code from the old PointLight to the new.

const attachment=op.outTrigger("Attachment");

and

if(attachment.isLinked())
{
    cgl.pushModelMatrix();
    mat4.translate(cgl.mMatrix,cgl.mMatrix,transVec);
    attachment.trigger();
    cgl.popModelMatrix();
}

It seems to work.
Made a quick test patch:

Cheers, dino

1 Like