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 889
889
class constant_texture : public texture {
890
890
public:
891
891
constant_texture() {}
892
- constant_texture(vec3 c) : color (c) {}
892
+ constant_texture(vec3 c) : solid_color (c) {}
893
893
894
894
virtual vec3 value(double u, double v, const vec3& p) const {
895
- return color ;
895
+ return solid_color ;
896
896
}
897
897
898
898
public:
899
- vec3 color ;
899
+ vec3 solid_color ;
900
900
};
901
901
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
902
902
[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 {
25
25
class constant_texture : public texture {
26
26
public:
27
27
constant_texture () {}
28
- constant_texture (vec3 c) : color (c) {}
28
+ constant_texture (vec3 c) : solid_color (c) {}
29
29
30
30
virtual vec3 value (double u, double v, const vec3& p) const {
31
- return color ;
31
+ return solid_color ;
32
32
}
33
33
34
34
public:
35
- vec3 color ;
35
+ vec3 solid_color ;
36
36
};
37
37
38
38
You can’t perform that action at this time.
0 commit comments