Iām trying to raise my head above the rising wave, and still Iām not very lucky.
I tried a sample code from the site. It is below:
#include <iostream>
It compiles fine, but when I enter the file into it, I get the following error:
ending the call after calling the instance "boost :: exception_detail :: clone_impl>"
what (): boost :: wave :: preprocess_exception
Canceled
The code I'm trying to "preprocess" is in a file called lex_infile with the following contents:
#include <oglre> #include <light> #include <material> in vec3 in_Position; in vec2 in_Texture; in vec3 in_Normal; out vec2 textureCoord; out vec4 pass_Color; void main() { gl_Position = pvmMatrix * vec4(in_Position, 1.0); textureCoord = in_Texture; vec3 normalDirection = normalize(normalMatrix * in_Normal); vec3 lightDirection = normalize(vec3(lightSources[0].direction)); vec3 diffuseReflection = vec3(lightSources[0].diffuse) * vec3(mymaterial.diffuse) * max(0.0, dot(normalDirection, lightDirection)); /* float bug = 0.0; bvec3 result = equal( diffuseReflection, vec3(0.0, 0.0, 0.0) ); if(result[0]) bug = 1.0; diffuseReflection.x += bug; */ pass_Color = vec4(diffuseReflection, 1.0); }
I guess I need to determine include locations .... how could I do this?
Sorry if this is simple stuff, I'm a little lost.
Jarrett
source share