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

Enable smooth triangle shading (custom per-vertex normals) #2067

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

SinanAkkoyun
Copy link
Contributor

Previously, every triangle's normals were being recalculated, which results in custom meshes to not shade smooth.
With this PR, only the normal recalculations for triangles have been disabled to enable smooth and flat shading, given by the per-vertex normals.

@IMS212 IMS212 merged commit 2a6c4a5 into IrisShaders:1.18.2 Aug 1, 2023
@SinanAkkoyun SinanAkkoyun deleted the 1.18.2-triangle-rendering branch August 1, 2023 06:35
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