setProjector for JPCT-AE ?

Started by MichaelJPCT, May 18, 2017, 07:26:30 AM

Previous topic - Next topic

MichaelJPCT

i see Projector class in javadoc of jpct-ae, but no setProjector method in Texture class like the one in jpct-desktop. would it be added?

EgonOlsen

I've no plans for it. In jPCT-AE, it's used for the ShadowHelper only, mainly to keep that class' signature similar to that of desktop jPCT.

If you want projective texturing, I suggest to write your own shader that does it instead.

MichaelJPCT

ok, thanks. i guess i can do it.

EgonOlsen

The default shaders in the jar contains fragments of shader code for the shadow mapping. These fragments use projection for the depth map. Maybe that helps. If not, I can post the code for the ShadowHelper later to show how to set up the needed matrix if that's a problem.

EgonOlsen

I just noticed that you can obtain the projection matrix from the Projector... ;)