⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’
Excalidraw Data
Text Elements
(-0.5, 0,5, 0)
(0.5, 0,5, 0)
(0.5, -0,5, 0)
(-0.5, -0,5, 0)
VAO:(-0.5, 0,5, 0)(-0.5, -0,5, 0)(0.5, 0,5, 0)(0.5, -0,5, 0)
Vertex Shader
int vec3 position;
Vertex Shader has access to these positions in the VAO
in the form of the variable
Tell GPU where these positions should be rendered on the screen
gl_Position = vec4(position.x, position.y, position.z, 1.0)
colour = vec3(position.x + 0.5, 1.0, position.y + 0.5)
calculate the colour of each vertex
fragment Shader
(0, 1, 1)
(1, 1, 1)
(1, 1, 0)
(0, 1, 0)