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

cam: extend frustum's far distance helper #71

Merged
merged 3 commits into from
Jan 16, 2019
Merged

cam: extend frustum's far distance helper #71

merged 3 commits into from
Jan 16, 2019

Conversation

recp
Copy link
Owner

@recp recp commented Jan 16, 2019

A helper to extend far plane of view frustum (perspective projection). This will help to implement zoom easily by moving camera and extending frustum.

New function:

void glm_persp_move_far(mat4 proj, float deltaFar);

it extracts near and far distances and makes new far distance far = far + deltaFar.

This function is used to implement camera zoom in Graphics Kernel (https://github.com/recp/gk)

@coveralls
Copy link

coveralls commented Jan 16, 2019

Coverage Status

Coverage decreased (-0.07%) to 11.487% when pulling 9a4bb1c on camera into e3d3cd8 on master.

@recp recp merged commit 07e60bd into master Jan 16, 2019
@recp recp deleted the camera branch January 16, 2019 12:00
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

Successfully merging this pull request may close these issues.

2 participants