Results 1 to 3 of 3

Thread: noise1 - no matching overloaded function found error message

  1. #1

    noise1 - no matching overloaded function found error message

    I am reading the The OpenGLŪ Shading Language (Language Version: 1.2) http://www.opengl.org/registry/doc/G...ull.1.20.8.pdf mentions, "8.9 Noise Functions - Noise functions are available to both fragment and vertex shaders. ".

    I have the following code snippet on my fragment shader:
    Code :
    			float x = 0.5;
    			float noise = noise1(x);

    It gives me the following error:

    Code :
    ERROR: 0:26: 'noise1' : no matching overloaded function found

    What did I do wrong?

    Thanks in advance for your help.

  2. #2

    Re: noise1 - no matching overloaded function found error mes

    It seems that WebGL uses GLSL version 1.0

    The OpenGL 2.0 GLSL version 1.0 http://www.khronos.org/registry/gles...ion_1.0.17.pdf does not seem to provide noise1 function.

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Location
    Seville. Spain.
    Posts
    3

    Re: noise1 - no matching overloaded function found error mes

    For a random float can pass a uniform with a random value given by Javascript:
    var rand = Math.random () * 100000;

    For a random vector can send a uniform sampler2D of a noisy texture

Similar Threads

  1. Replies: 1
    Last Post: 02-29-2012, 06:34 PM
  2. Replies: 0
    Last Post: 06-02-2010, 02:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •