Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with Isometric Orthographic Projection Matrix #38

Open
ThomThomson opened this issue Oct 30, 2021 · 0 comments
Open

Usage with Isometric Orthographic Projection Matrix #38

ThomThomson opened this issue Oct 30, 2021 · 0 comments

Comments

@ThomThomson
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant