X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Frendermethod.h;h=723aa5a25733c980c85d6db62e06eb1bc4d04669;hp=bf35aac57db1177e0a06ee229fe22a3197f64cf2;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=3bc34893905a2df622894aadcb6669f27f186772 diff --git a/source/materials/rendermethod.h b/source/materials/rendermethod.h index bf35aac5..723aa5a2 100644 --- a/source/materials/rendermethod.h +++ b/source/materials/rendermethod.h @@ -72,21 +72,17 @@ private: TextureSlot(Tag t): tag(t), texture(0), sampler(0) { } }; - const Program *shprog; - bool shprog_from_material; + const Program *shprog = 0; + bool shprog_from_material = false; RefPtr shdata; std::map uniform_slots; - const Material *material; + const Material *material = 0; std::string material_slot; std::vector textures; - CullMode face_cull; - bool receive_shadows; - bool image_based_lighting; + CullMode face_cull = CULL_BACK; + bool receive_shadows = false; + bool image_based_lighting = false; -public: - RenderMethod(); - -private: void maybe_create_material_shader(); void set_material_textures();