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

Oblique camera projection plane clipping #2

Open
RisingThumb opened this issue Dec 5, 2024 · 0 comments
Open

Oblique camera projection plane clipping #2

RisingThumb opened this issue Dec 5, 2024 · 0 comments

Comments

@RisingThumb
Copy link
Owner

This will prevent things under the mirror/water being reflected as currently happens(currently the fix is to just not have geometry under it, but this doesn't work if you have heightmapped terrain).

This is blocked until godotengine/godot#89140 is merged. Once merged it is a case of adding the following lines to the PlanarReflection.gd script in the ready function

	reflect_camera.use_oblique_frustum = true
	reflect_camera.oblique_position = self.global_position
        reflect_camera.oblique_normal = Vector3.UP

The normal code will need to be got from the rotation, but we can look at that when the PR above is merged.

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