Sha256: f1ee4aa7232b3b77b041ac0adfcb4298d96742dca8ab5d99689bad68c578a0c0

Contents?: true

Size: 291 Bytes

Versions: 42

Compression:

Stored size: 291 Bytes

Contents

/* Vertex shader */
uniform float waveTime;
uniform float waveWidth;
uniform float waveHeight;
 
void main(void)
{
    vec4 v = vec4(gl_Vertex);

    v.z = sin(waveWidth * v.x + waveTime) * cos(waveWidth * v.y + waveTime) * waveHeight;

    gl_Position = gl_ModelViewProjectionMatrix * v;
}

Version data entries

42 entries across 42 versions & 5 rubygems

Version Path
pygments.rb-0.3.6 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.3.5 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.3.4 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.3.3 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.3.2 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.3.1 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.3.0 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.13 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.12 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.11 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.10 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.9 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.8 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.7 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.6 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.4 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.3 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.2 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.1 vendor/pygments-main/tests/examplefiles/glsl.vert
pygments.rb-0.2.0 vendor/pygments-main/tests/examplefiles/glsl.vert