Get the vertex shader WGSL output struct content from the given Geometry. Pass all Geometry attributes, plus eventual bitangent (vec3f) if tangent attribute is defined, and viewDirection (vec3f), worldPosition (vec3f) and modelScale (vec3f).

  • Parameters

    • parameters: { geometry: Geometry; additionalVaryings?: { type: string; name: string }[] }

      Parameters used to generate the vertex shader WGSL output struct content.

      • geometry: Geometry

        Geometry used to generate the struct content from its attributes.

      • OptionaladditionalVaryings?: { type: string; name: string }[]

        Optional additional varyings to pass from the vertex shader to the fragment shader.

    Returns string

    • String with the vertex shader WGSL output struct content.