diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 01:42:31 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 01:42:31 +0000 |
commit | d267ac762bb0764857fedb92a516a9aa290b0dd2 (patch) | |
tree | 7e265d3343685ed89f96b5185058790aa007671a /o3d/compiler/glsl_validator/shaders/ambient.vert | |
parent | 7e76fdeb4b7f95bc3e315772a0fac5edcc9675cb (diff) | |
download | chromium_src-d267ac762bb0764857fedb92a516a9aa290b0dd2.zip chromium_src-d267ac762bb0764857fedb92a516a9aa290b0dd2.tar.gz chromium_src-d267ac762bb0764857fedb92a516a9aa290b0dd2.tar.bz2 |
Adding Bison and ANTLR grammars for GLSL ES. The grammars are derived
from the OpenGL ES specification and are intended to match the
structure in the spec as closely as possible while working with
existing tools. Hints were taken from the Mesa GLSL grammar, which
uses a custom parser generator, to solve reduce/reduce conflicts in
the Bison version. The grammars do nothing at the moment except parse
inputs and provide rudimentary error reporting. Follow-on work will
extend these grammars with the intended functionality. Basic testing
has been done but much more is needed.
Review URL: http://codereview.chromium.org/159324
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/compiler/glsl_validator/shaders/ambient.vert')
-rw-r--r-- | o3d/compiler/glsl_validator/shaders/ambient.vert | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/o3d/compiler/glsl_validator/shaders/ambient.vert b/o3d/compiler/glsl_validator/shaders/ambient.vert new file mode 100644 index 0000000..7d90a80 --- /dev/null +++ b/o3d/compiler/glsl_validator/shaders/ambient.vert @@ -0,0 +1,11 @@ +// Modified from shader at +// http://nehe.gamedev.net/data/articles/article.asp?article=21 + +uniform mat4 g_ModelViewProjectionMatrix; + +attribute vec3 g_Vertex; + +void main() +{ + gl_Position = g_ModelViewProjectionMatrix * g_Vertex; +} |