Added the camera class
Added the DDS Texture Loading for future use Added the gamepad class for future use Added first child method to the scenegraph Added RGB to intensity and lerp methods to the shared methods class Added the terrain node class with normals Fixed issue with submeshnode not passing the world transform to the actual meshes
This commit is contained in:
@ -3,21 +3,26 @@
|
||||
|
||||
struct CBUFFER
|
||||
{
|
||||
XMMATRIX CompleteTransformation;
|
||||
XMMATRIX WorldTransformation;
|
||||
XMFLOAT4 CameraPosition;
|
||||
XMVECTOR LightVector;
|
||||
XMFLOAT4 LightColor;
|
||||
XMFLOAT4 AmbientColor;
|
||||
XMFLOAT4 DiffuseCoefficient;
|
||||
XMFLOAT4 SpecularCoefficient;
|
||||
float Shininess;
|
||||
float Opacity;
|
||||
float Padding[2];
|
||||
XMMATRIX completeTransformation;
|
||||
XMMATRIX worldTransformation;
|
||||
XMFLOAT4 cameraPosition;
|
||||
XMVECTOR lightVector;
|
||||
XMFLOAT4 lightColor;
|
||||
XMFLOAT4 ambientColor;
|
||||
XMFLOAT4 diffuseCoefficient;
|
||||
XMFLOAT4 specularCoefficient;
|
||||
float shininess;
|
||||
float opacity;
|
||||
float padding[2];
|
||||
};
|
||||
|
||||
namespace SharedMethods
|
||||
{
|
||||
XMMATRIX RotateFromPoint(float x, float y, float z, XMMATRIX rotationMatrix);
|
||||
|
||||
float RGBValueToIntensity(int value);
|
||||
float lerp(int a, int b, int p);
|
||||
float lerp(float a, float b, float p);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user