Skip to content

DrawdMeshInstanced loses normal vectors in release #13

@void-ripper

Description

@void-ripper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions