Skip to content

Instantly share code, notes, and snippets.

@SableRaf

SableRaf/none Secret

Created November 21, 2020 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SableRaf/349ee841a10dfeed335f41e89a4295d0 to your computer and use it in GitHub Desktop.
Save SableRaf/349ee841a10dfeed335f41e89a4295d0 to your computer and use it in GitHub Desktop.
vertexAttribute(config: { variableName: any; }): any
vertexAttribute(config: { variableName: any; }): any
vertexAttribute(config: {variableName: Shaders.VertexAttribute}): GenericVector
Returns a signal for the specified vertex attribute depending on the VertexAttribute used:
VertexAttribute.POSITION: Point4DSignal
VertexAttribute.NORMAL: PointSignal
VertexAttribute.TANGENT: Point4DSignal
VertexAttribute.TEX_COORDS: Point2DSignal
VertexAttribute.COLOR: Point4DSignal
VertexAttribute.BASE_POSITION: Point4DSignal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment