diff options
author | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2015-03-17 22:38:45 +0000 |
---|---|---|
committer | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2015-03-17 22:38:45 +0000 |
commit | 356f94fc355f36c16e48555d10c2377dff4b7554 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Gem/examples/10.glsl/geo.geom | |
parent | 5c694f159b012d1d94bf15bfe580dec52e4fe797 (diff) |
Gem 096ed6ef786b7a9d6e11a437ff8526619c89a1fd osx/x86_64
built 'coverity_scan:096ed6ef786b7a9d6e11a437ff8526619c89a1fd' for osx/x86_64
Diffstat (limited to 'Gem/examples/10.glsl/geo.geom')
-rw-r--r-- | Gem/examples/10.glsl/geo.geom | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Gem/examples/10.glsl/geo.geom b/Gem/examples/10.glsl/geo.geom deleted file mode 100644 index 3271c6f..0000000 --- a/Gem/examples/10.glsl/geo.geom +++ /dev/null @@ -1,28 +0,0 @@ -#version 120 -#extension GL_EXT_geometry_shader4: enable - -void main(void) -{ - //increment variable - int i,j; - float rnd1,rnd2; - rnd1 = 0.0216767863321334264; // seed - rnd2 = 0.0475785688678678345; - for(j=0; j< 40; j++) - { - rnd1 = fract(124.321345312123465*rnd1) -0.5; // easy way to generated pseudo random number - rnd2 = fract(5234.43532345435245*rnd2) -0.5; - - //draw 40 time the same geometry, but with small shift in it's position - for(i=0; i< gl_VerticesIn; i++) - { - gl_FrontColor = gl_FrontColorIn[i]; - gl_TexCoord[0] = gl_TexCoordIn[i][0]; - gl_Position = gl_PositionIn[i]; // get position of the original point - gl_Position.xy += vec2(rnd1,rnd2)/3.; // add small random - // the geometry as already been transform in 2d, so we jut have to move it in X and Y - EmitVertex(); - } - EndPrimitive(); - } -} |