/*
 * Filtering Solid Gabor Noise
 * 
 * Example code for the article
 * Lagae, A. and Drettakis, G. 2011. Filtering Solid Gabor Noise.
 * ACM Transactions on Graphics (Proceedings of ACM SIGGRAPH 2011) 30, 4.
 * 
 * Copyright (C) 2011 Ares Lagae (ares.lagae@cs.kuleuven.be) and George
 * Drettakis (george.drettakis@inria.fr)
 * 
 * This work is licensed under a non-commercial license (see LICENSE.txt).
 *
 * Permissions beyond the scope of this license are be available from the
 * authors.
 *
 * If you use this software, you must site the article.
 */

#version 150 compatibility

in vec3 gl_Normal;
in vec4 gl_Vertex;

out vec4 gl_Position;
out vec3 x_tex;
out vec3 n_tex_;

void main()
{
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
  float scale = 256 * 0.5;
  x_tex = vec3(scale * gl_Vertex);
  n_tex_ = gl_Normal;
}
