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 Hologram:setCullMode() #1801

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Add Hologram:setCullMode() #1801

merged 1 commit into from
Aug 8, 2024

Conversation

Advers
Copy link
Contributor

@Advers Advers commented Aug 7, 2024

Adds a function that allows for the cull direction of holograms to be changed without forcing the user to create a render hook

@thegrb93
Copy link
Owner

thegrb93 commented Aug 7, 2024

I think cullmode can be controlled via the material right? Are you able to use a material instead?

@Advers
Copy link
Contributor Author

Advers commented Aug 8, 2024

Would this be better than using render.CullMode() for the purpose? Please explain.

@thegrb93
Copy link
Owner

thegrb93 commented Aug 8, 2024

This adds passive render overhead to hologram. I've been thinking about making a function that builds the hologram render function so maybe that'll optimize it anyway.

@thegrb93
Copy link
Owner

thegrb93 commented Aug 8, 2024

My only other complaint is that cullmode has 3 modes and your bool only allows support for 2 modes.

@Advers
Copy link
Contributor Author

Advers commented Aug 8, 2024

3 modes? I was under the impression that render.CullMode() only had two modes. Are you referring to the nocull material flag?

@thegrb93
Copy link
Owner

thegrb93 commented Aug 8, 2024

Huh, I swear there used to be a 'none' cullmode which would make the faces draw on both sides.

@thegrb93
Copy link
Owner

thegrb93 commented Aug 8, 2024

I guess I was just thinking of the nocull material flag

@thegrb93 thegrb93 merged commit 1043957 into thegrb93:master Aug 8, 2024
1 check passed
github-actions bot added a commit that referenced this pull request Aug 8, 2024
@Advers Advers deleted the holo-invert branch August 8, 2024 18:49
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