
Added Light Base Class Added AmbientLight, DirectionalLight and PointLight Classes Added Constructor to the Camera Class Added Light CoEff's to the Model Class Added Color Variables to Polygon3D Class Added Light Vector to hold the lights in the Rasteriser Added Camera Vector to hold multiple Cameras and Methods to set which is the current Added Lighting to the Rasterizer Added DrawSolidFlat method to the Rastorizer Added Bounds Check to the SharedTools for Int and Float values Added Color Enum Class Added Normalize Method to the Vector3D Class Renamed the TransformTools to SharedTools since adding more non transform methods to it
21 lines
457 B
C++
21 lines
457 B
C++
#pragma once
|
|
#include "Light.h"
|
|
|
|
class AmbientLight :
|
|
public Light
|
|
{
|
|
public:
|
|
AmbientLight() : Light() {};
|
|
AmbientLight(int red, int green, int blue) : Light(red, green, blue) {};
|
|
AmbientLight(const AmbientLight& other);
|
|
|
|
COLORREF CalculateLight(const Model& currentModel, const Polygon3D& currentPolygon, COLORREF colorIn);
|
|
|
|
AmbientLight& operator= (const AmbientLight& rhs);
|
|
|
|
private:
|
|
void Copy(const AmbientLight& other);
|
|
|
|
};
|
|
|