Skip to content

Holographic transform mirror hack is causing shading bugs #132

@mlfarrell

Description

@mlfarrell

Behold, my latest hack removal target:

                // TODO: The display was being mirrored, so for now we hack these values to 
                //       negative as far as the app is concerned.
                viewTransform.Left.M11 = -viewTransform.Left.M11;
                viewTransform.Left.M12 = -viewTransform.Left.M12;
                viewTransform.Left.M13 = -viewTransform.Left.M13;
                viewTransform.Right.M11 = -viewTransform.Right.M11;
                viewTransform.Right.M12 = -viewTransform.Right.M12;
                viewTransform.Right.M13 = -viewTransform.Right.M13;
                mMidViewMatrix._11 = -mMidViewMatrix._11;
                mMidViewMatrix._12 = -mMidViewMatrix._12;
                mMidViewMatrix._13 = -mMidViewMatrix._13;

This is causing gl_FrontFacing to be incorrectly mirrored w.r.t the x axis in all of my shaders. Is there a better way to handle this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions