Usage with Isometric Orthographic Projection Matrix
ThomThomson opened this issue · 0 comments
ThomThomson commented
I'm attempting to use this shader to create screenspace decals with a custom Isometric camera I created by shifting one of the elements of the camera's projection matrix.
I have _SupportOrthographicCamera
turned on, and the decal works great with an orthographic camera with no lens shift, but as soon as I apply the lens shift, the decal disappears. The line of code which applies the lens shift looks like:
targetMatrix.m12 = isoLensShiftY / camera.orthographicSize;
I'm thinking that there must be somewhere in the shader where I could inject similar code to get the decal to show up.
If you could help to point me in the right direction, that you be much appreciated, thanks!