Skip to content

Blogpost: UBO in shader syntax. #15

Open
@wrightwriter

Description

@wrightwriter

Under Shader Modules,

vsOut.Position = modelViewProj * vec4<f32>(inPos, 1.0);
should be
vsOut.Position = uniforms.modelViewProj * vec4<f32>(inPos, 1.0);

The former doesn't compile and throws an error.

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