File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 889889 class constant_texture : public texture {
890890 public:
891891 constant_texture() {}
892- constant_texture(vec3 c) : color (c) {}
892+ constant_texture(vec3 c) : solid_color (c) {}
893893
894894 virtual vec3 value(double u, double v, const vec3& p) const {
895- return color ;
895+ return solid_color ;
896896 }
897897
898898 public:
899- vec3 color ;
899+ vec3 solid_color ;
900900 };
901901 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
902902 [Listing [texture]: < kbd> [texture.h]</ kbd> A texture class]
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ class texture {
2525class constant_texture : public texture {
2626 public:
2727 constant_texture () {}
28- constant_texture (vec3 c) : color (c) {}
28+ constant_texture (vec3 c) : solid_color (c) {}
2929
3030 virtual vec3 value (double u, double v, const vec3& p) const {
31- return color ;
31+ return solid_color ;
3232 }
3333
3434 public:
35- vec3 color ;
35+ vec3 solid_color ;
3636};
3737
3838
You can’t perform that action at this time.
0 commit comments