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

Add render.setWriteDepthToDestAlpha() #1508

Merged
merged 1 commit into from
Sep 3, 2023
Merged

Add render.setWriteDepthToDestAlpha() #1508

merged 1 commit into from
Sep 3, 2023

Conversation

ZH-Hristov
Copy link
Contributor

Allows creation of RTs with alpha masks. Example on the GMod wiki works the same way in SF.

@@ -472,6 +472,7 @@ function instance:cleanupRender()
render.ResetModelLighting(1, 1, 1)
render.DepthRange(0, 1)
render.SuppressEngineLighting(false)
render.SetWriteDepthToDestAlpha(true)
Copy link
Owner

@thegrb93 thegrb93 Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the original state normally 'true'?

Copy link
Contributor Author

@ZH-Hristov ZH-Hristov Sep 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going off of the example here https://wiki.facepunch.com/gmod/render.SetWriteDepthToDestAlpha which sets it to false first and then to true

@thegrb93 thegrb93 merged commit e5d07ef into thegrb93:master Sep 3, 2023
1 check passed
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