What are Attributes in Shaders?

Oscar de la Hera Gomez
A flower that represents spatial computing with the text "Attributes" beneath it.

In Computer Graphics, the term "attributes" refers to variables that are defined in software and which are only available in the vertex shader.

A screenshot of Chrome showing a cube with colored faces that match the colors we set for the vertices in this tutorial.

An example use of attributes.

Attributes are data or variables that are defined at the software level and which are passed down exclusively to the vertex shader.

For an example use of attributes, consult the tutorial below.

Looking for tutorials on how to implement shaders?

For examples on how to implement shaders in WebGL and Metal (Apple), consult the guides below.

Looking to learn more about how computer graphics (CG) are rendered?

Consult our article below to learn more about how computer graphics are rendered.

Looking to learn more about Technology, Augmented Reality, Virtual Reality, Mixed Reality or Spatial Computing?

Search our blog to find educational content on technology, A/R, V/R, M/R and spatial computing.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details