Exemplo n.º 1
0
  public static void attachFragmentNoise(final CCCGShader theShader) {
    CGparameter myPermTextureParam = theShader.fragmentParameter("permTexture");
    CGparameter mySimplexTextureParam = theShader.fragmentParameter("simplexTexture");
    CGparameter myGradTextureParam = theShader.fragmentParameter("gradTexture");

    if (noise == null) noise = new CCGPUNoise();

    theShader.texture(myPermTextureParam, noise.permTextureID[0]);
    theShader.texture(mySimplexTextureParam, noise.simplexTextureID[0]);
    theShader.texture(myGradTextureParam, noise.gradTextureID[0]);
  }