X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Frendermethod.cpp;fp=source%2Fmaterials%2Frendermethod.cpp;h=66424856bdc12abbc9642846e63273da900c29aa;hb=f1e296bb2442dfbea12e7b38a97cc152aa34569c;hp=ddbe4f1e457e83760dc699bce85ad52dd64ac29e;hpb=64de7412ba2d6b4c93f0379895bf775f74f00541;p=libs%2Fgl.git diff --git a/source/materials/rendermethod.cpp b/source/materials/rendermethod.cpp index ddbe4f1e..66424856 100644 --- a/source/materials/rendermethod.cpp +++ b/source/materials/rendermethod.cpp @@ -34,6 +34,8 @@ void RenderMethod::maybe_create_material_shader() extra_spec["use_shadow_map"] = true; if(image_based_lighting) extra_spec["use_image_based_lighting"] = true; + if(instancing) + extra_spec["use_instancing"] = true; shprog = material->create_compatible_shader(extra_spec); @@ -154,6 +156,7 @@ void RenderMethod::Loader::init_actions() add("face_cull", &RenderMethod::face_cull); add("shader", &Loader::shader); add("image_based_lighting", &RenderMethod::image_based_lighting); + add("instancing", &RenderMethod::instancing); add("material", &Loader::material_inline); add("material", &Loader::material); add("material_slot", &RenderMethod::material_slot);