Commit 97655f87 authored by kvanhoey's avatar kvanhoey

More typo bugs in shader macros

parent 0327ae08
// ShaderColorPerVertex::fragmentShaderText // ShaderColorPerVertex::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec3 color; VARYING_FRAG vec3 color;
uniform float alpha; uniform float alpha;
FRAG_OUT_DEF; FRAG_OUT_DEF;
......
// ShaderCustomTex::fragmentShaderText // ShaderCustomTex::fragmentShaderText
PRECISON; PRECISION;
uniform sampler2D textureUnit; uniform sampler2D textureUnit;
in vec3 N; in vec3 N;
in vec2 fragTexCoord; in vec2 fragTexCoord;
......
//ShaderEnvMap::fragmentShaderText //ShaderEnvMap::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec3 EyeVector, Normal, LightDir; VARYING_FRAG vec3 EyeVector, Normal, LightDir;
#ifdef WITH_COLOR #ifdef WITH_COLOR
VARYING_FRAG vec3 Color; VARYING_FRAG vec3 Color;
......
//ShaderMatCustom::fragmentShaderText //ShaderMatCustom::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec3 EyeVector, Normal, LightDir; VARYING_FRAG vec3 EyeVector, Normal, LightDir;
#ifdef WITH_COLOR #ifdef WITH_COLOR
VARYING_FRAG vec3 Color; VARYING_FRAG vec3 Color;
......
//ShaderPhong::fragmentShaderText //ShaderPhong::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec3 EyeVector, Normal, LightDir; VARYING_FRAG vec3 EyeVector, Normal, LightDir;
#ifdef WITH_COLOR #ifdef WITH_COLOR
VARYING_FRAG vec3 Color; VARYING_FRAG vec3 Color;
......
// ShaderPhongTexture::fragmentShaderText // ShaderPhongTexture::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec3 EyeVector, Normal, LightDir; VARYING_FRAG vec3 EyeVector, Normal, LightDir;
VARYING_FRAG vec2 texCoord; VARYING_FRAG vec2 texCoord;
......
// ShaderRadiancePerVertex::fragmentShaderText // ShaderRadiancePerVertex::fragmentShaderText
// PRECISION; // pose un pb non élucidé. remplacé temporairement par : PRECISION;
precision highp float;
VARYING_FRAG vec3 vxColor; VARYING_FRAG vec3 vxColor;
FRAG_OUT_DEF; FRAG_OUT_DEF;
void main (void) void main (void)
......
// ShaderScalarField::fragmentShaderText // ShaderScalarField::fragmentShaderText
PRECISON; PRECISION;
uniform float minValue; uniform float minValue;
uniform float maxValue; uniform float maxValue;
VARYING_FRAG vec3 color; VARYING_FRAG vec3 color;
......
// ShaderSimpleColor::fragmentShaderText // ShaderSimpleColor::fragmentShaderText
PRECISON; PRECISION;
uniform vec4 color; uniform vec4 color;
FRAG_OUT_DEF; FRAG_OUT_DEF;
void main() void main()
......
//ShaderSimpleFlat::fragmentShaderText //ShaderSimpleFlat::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec3 LightDir; VARYING_FRAG vec3 LightDir;
VARYING_FRAG vec3 Position; VARYING_FRAG vec3 Position;
#ifdef WITH_COLOR #ifdef WITH_COLOR
......
// ShaderSimpleTexture::fragmentShaderText // ShaderSimpleTexture::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec2 texCoord; VARYING_FRAG vec2 texCoord;
uniform sampler2D textureUnit; uniform sampler2D textureUnit;
FRAG_OUT_DEF; FRAG_OUT_DEF;
......
// ShaderTextureDepth::fragmentShaderText // ShaderTextureDepth::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec2 texCoord; VARYING_FRAG vec2 texCoord;
uniform sampler2D textureUnit; uniform sampler2D textureUnit;
uniform sampler2D textureDepthUnit; uniform sampler2D textureDepthUnit;
......
// ShaderTextureMask::fragmentShaderText // ShaderTextureMask::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec2 texCoord; VARYING_FRAG vec2 texCoord;
uniform sampler2D textureUnit; uniform sampler2D textureUnit;
uniform sampler2D textureUnitMask; uniform sampler2D textureUnitMask;
......
// ShaderVectorPerVertex::fragmentShaderText // ShaderVectorPerVertex::fragmentShaderText
PRECISON; PRECISION;
uniform vec4 vectorColor; uniform vec4 vectorColor;
FRAG_OUT_DEF; FRAG_OUT_DEF;
void main() void main()
......
// ShaderWallPaper::fragmentShaderText // ShaderWallPaper::fragmentShaderText
PRECISON; PRECISION;
VARYING_FRAG vec2 texCoord; VARYING_FRAG vec2 texCoord;
uniform sampler2D textureUnit; uniform sampler2D textureUnit;
FRAG_OUT_DEF; FRAG_OUT_DEF;
......
...@@ -144,7 +144,7 @@ std::string GLSLShader::defines_Geom(const std::string& primitivesIn, const std: ...@@ -144,7 +144,7 @@ std::string GLSLShader::defines_Geom(const std::string& primitivesIn, const std:
{ {
std::string str("#version 110\n"); std::string str("#version 110\n");
str.append("#extension GL_EXT_geometry_shader4 : enable\n"); str.append("#extension GL_EXT_geometry_shader4 : enable\n");
str.append("#define PRECISON float pipo_PRECISION\n"); str.append("#define PRECISION float pipo_PRECISION\n");
str.append("#define ATTRIBUTE attribute\n"); str.append("#define ATTRIBUTE attribute\n");
str.append("#define VARYING_IN varying in\n"); str.append("#define VARYING_IN varying in\n");
str.append("#define VARYING_OUT varying out\n"); str.append("#define VARYING_OUT varying out\n");
......
...@@ -48,7 +48,7 @@ namespace Utils ...@@ -48,7 +48,7 @@ namespace Utils
// //
// //
//std::string ShaderColorPerVertex::fragmentShaderText = //std::string ShaderColorPerVertex::fragmentShaderText =
// "PRECISON;\n" // "PRECISION;\n"
// "VARYING_FRAG vec3 color;\n" // "VARYING_FRAG vec3 color;\n"
// "FRAG_OUT_DEF;\n" // "FRAG_OUT_DEF;\n"
// "void main()\n" // "void main()\n"
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
// //
// //
//std::string ShaderCustomTex::fragmentShaderText = //std::string ShaderCustomTex::fragmentShaderText =
// "PRECISON;\n" // "PRECISION;\n"
// "VARYING_FRAG vec2 texCoord;\n" // "VARYING_FRAG vec2 texCoord;\n"
// "uniform sampler2D textureUnit;\n" // "uniform sampler2D textureUnit;\n"
// "FRAG_OUT_DEF;\n" // "FRAG_OUT_DEF;\n"
......
...@@ -44,7 +44,7 @@ namespace Utils ...@@ -44,7 +44,7 @@ namespace Utils
// //
// //
//std::string ShaderSimpleColor::fragmentShaderText = //std::string ShaderSimpleColor::fragmentShaderText =
// "PRECISON;\n" // "PRECISION;\n"
// "uniform vec4 color;\n" // "uniform vec4 color;\n"
// "FRAG_OUT_DEF;\n" // "FRAG_OUT_DEF;\n"
// "void main()\n" // "void main()\n"
......
...@@ -48,7 +48,7 @@ namespace Utils ...@@ -48,7 +48,7 @@ namespace Utils
// //
// //
//std::string ShaderSimpleTexture::fragmentShaderText = //std::string ShaderSimpleTexture::fragmentShaderText =
// "PRECISON;\n" // "PRECISION;\n"
// "VARYING_FRAG vec2 texCoord;\n" // "VARYING_FRAG vec2 texCoord;\n"
// "uniform sampler2D textureUnit;\n" // "uniform sampler2D textureUnit;\n"
// "FRAG_OUT_DEF;\n" // "FRAG_OUT_DEF;\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment