X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=demos%2Fdesertpillars.cpp;h=cb06cd000bc05f32f3cb446133c08a555362e4fb;hp=b5cdde063b7b62b674177f71694abe0a3b52a73b;hb=6a832fe1771f8c7bca0faa0d383fbbab062a1c56;hpb=c44e9005200af76266ef44c158688e112ad4bb32 diff --git a/demos/desertpillars.cpp b/demos/desertpillars.cpp index b5cdde06..cb06cd00 100644 --- a/demos/desertpillars.cpp +++ b/demos/desertpillars.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include using namespace std; @@ -234,7 +234,7 @@ const char DesertPillars::ground_variables[] = "uniform sampler2D texture2;\n" "uniform sampler2D normalmap2;\n" "attribute float ground_type;\n" - "fragment vec4 tex_sample = mix(texture2D(texture1, texture_coord*3.0), texture2D(texture2, texture_coord), ground_type);\n" + "fragment vec4 diffuse_sample = mix(texture2D(texture1, texture_coord*3.0), texture2D(texture2, texture_coord), ground_type);\n" "fragment vec3 normal_sample = mix(texture2D(normalmap1, texture_coord*3.0).rgb, texture2D(normalmap2, texture_coord).rgb, ground_type);\n"; const char DesertPillars::cube_variables[] = @@ -577,7 +577,7 @@ void DesertPillars::create_ground() features.lighting = true; features.shadow = true; features.texture = true; - features.normalmap = true; + features.normal_map = true; features.custom = ground_variables; GL::ProgramBuilder(features).add_shaders(ground_shprog); ground_shprog.bind_attribute(7, "ground_type");