Skip to content

How to convert mat3(mvi) in GLSL into WGSL?  #1417

Closed
@jack1232

Description

@jack1232

I have the following GLSL code in the fragment shader when doing lighting:

mat4 mvi = transpose(inverse(modelViewMatrix));
vec3 my_normal = mat3(mvi) * normal;

How to convert this code into WGSL code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionwgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions