Extension of v3 class to compute vertices with shading. More...


Public Member Functions | |
| v3_shaded () | |
| empty constructor | |
| v3_shaded (const double &x, const double &y, const double &z) | |
| direct constructor | |
| v3_shaded (const v3 &x) | |
| direct constructor from base class | |
| color | shading (const color &c, const v3 &normal, const shading_parameters &shading, const light_parameters &light) const |
| Compute color for shaded vertex. | |
Extension of v3 class to compute vertices with shading.
| cpe::v3_shaded::v3_shaded | ( | ) |
empty constructor
| cpe::v3_shaded::v3_shaded | ( | const double & | x, | |
| const double & | y, | |||
| const double & | z | |||
| ) |
direct constructor
| cpe::v3_shaded::v3_shaded | ( | const v3 & | x | ) |
direct constructor from base class
| color cpe::v3_shaded::shading | ( | const color & | c, | |
| const v3 & | normal, | |||
| const shading_parameters & | shading, | |||
| const light_parameters & | light | |||
| ) | const |
Compute color for shaded vertex.
| color | c: initial color (without shading) | |
| normal | n: the normal associated to the current vertex | |
| shading_parameters | shading: the shading parameters | |
| light_parameters | light: the light |
1.6.3