Skip to content

Commit

Permalink
[docs] fix shader example that had incorrect variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Aug 16, 2016
1 parent c6f0e8d commit a8b3c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/material.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ AFRAME.registerShader('hello-world', {

vertexShader: [
'void main() {',
' gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;',
' gl_Position = projectionMatrix * modelViewMatrix * position;',
'}'
].join('\n'),

Expand Down

0 comments on commit a8b3c4c

Please sign in to comment.