include/scene.h
branchpyrit
changeset 40 929aad02c5f2
parent 38 5d043eeb09d9
child 42 fbdeb3e04543
equal deleted inserted replaced
39:7079dcc3bd74 40:929aad02c5f2
    70 public:
    70 public:
    71 	Vector3 pos;
    71 	Vector3 pos;
    72 	Colour colour;
    72 	Colour colour;
    73 	bool cast_shadows;
    73 	bool cast_shadows;
    74 
    74 
       
    75 	Light():
       
    76 		pos(Vector3(0,0,0)), colour(Colour(1,1,1)), cast_shadows(true) {};
    75 	Light(const Vector3 &position, const Colour &acolour):
    77 	Light(const Vector3 &position, const Colour &acolour):
    76 		pos(position), colour(acolour), cast_shadows(true) {};
    78 		pos(position), colour(acolour), cast_shadows(true) {};
    77 	void castShadows(bool cast) { cast_shadows = cast; };
    79 	void castShadows(bool cast) { cast_shadows = cast; };
    78 };
    80 };
    79 
    81