I have done it in the PG, you need to set the renderList
property of the geometry renderer:
geor.renderList = [box];
The easiest way is probably to create a layer and set its texture to the gbuffer normal texture. That way, you don’t even need a plane:
If you really want to use a plane, see how it is done in this PG (functions makeShadowMapPlane
to create the plane and showDepthMap
to always have the plane facing the camera):
Change the value 256
line 168 to change the plane size
Another PG where a mesh stays at a fixed position/rotation wrt the camera: