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

DrawdMeshInstanced loses normal vectors in release #13

Open
void-ripper opened this issue Oct 31, 2024 · 0 comments
Open

DrawdMeshInstanced loses normal vectors in release #13

void-ripper opened this issue Oct 31, 2024 · 0 comments

Comments

@void-ripper
Copy link

Like the title says.

a call to DrawMeshInstanced works. But only if the opt-level = 0.

        unsafe {
            DrawMeshInstanced(
                *self.model.meshes.offset(0),
                self.material,
                matrices.as_ptr(),
                matrices.len() as _,
            );
        }

If the opt-level is higher, then the normal vectors seems to be omitted.

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