Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Resources/Shaders/template.vsh
attribute vec4 position; |
attribute vec4 color; |
uniform mat4 modelViewProjectionMatrix; |
varying vec4 colorVarying; |
void main() |
{ |
gl_Position = modelViewProjectionMatrix * position; |
colorVarying = color; |
} |
Copyright © 2010 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2010-07-07