diff options
author | Sven Gothel <[email protected]> | 2014-10-24 17:47:51 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-10-24 17:47:51 +0200 |
commit | b2da4858e8b5cb2ec3131ed76e2c61ad4a8a2e1c (patch) | |
tree | 047c266b721c840f367c143b1724157ee1d5ae69 /src/demos/instancedRendering/shader/triangles.fp | |
parent | 4392e90ea2909d89895d992833bf9e71ae922a1d (diff) | |
parent | 5a37c7f33e5b3584a3561f240392814940a69956 (diff) |
Merge pull request #7 from toruwest/master
Test case of how to use instanced rendering.
Diffstat (limited to 'src/demos/instancedRendering/shader/triangles.fp')
-rw-r--r-- | src/demos/instancedRendering/shader/triangles.fp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/demos/instancedRendering/shader/triangles.fp b/src/demos/instancedRendering/shader/triangles.fp new file mode 100644 index 0000000..005884a --- /dev/null +++ b/src/demos/instancedRendering/shader/triangles.fp @@ -0,0 +1,15 @@ +// Copyright 2014 JogAmp Community. All rights reserved. + +#if __VERSION__ >= 130 + #define varying in + out vec4 mgl_FragColor; + #define texture2D texture +#else + #define mgl_FragColor gl_FragColor +#endif + +varying vec4 frontColor; + +void main (void) { + mgl_FragColor = frontColor; +} |