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).
bitangent
vec3f
tangent
viewDirection
worldPosition
modelScale
Parameters used to generate the vertex shader WGSL output struct content.
Geometry used to generate the struct content from its attributes.
Optional
Optional additional varyings to pass from the vertex shader to the fragment shader.
Get the vertex shader WGSL output struct content from the given Geometry. Pass all Geometry attributes, plus eventual
bitangent
(vec3f
) iftangent
attribute is defined, andviewDirection
(vec3f
),worldPosition
(vec3f
) andmodelScale
(vec3f
).