Start work on lighting

This commit is contained in:
Dane Johnson
2021-01-21 15:26:39 -06:00
parent 3eaca9903b
commit a7396c71fe
24 changed files with 203 additions and 14 deletions

View File

@@ -14,6 +14,7 @@
#include "Mesh.h"
#include "Material.h"
#include "Camera.h"
#include "Light.h"
%}
%rename("%(strip:[script_])s") "";
@@ -24,6 +25,7 @@ typedef float cfloat;
class Vector3 {
public:
Vector3();
Vector3(cfloat x, cfloat y, cfloat z);
cfloat x, y, z;
};
@@ -37,6 +39,13 @@ public:
}
%ignore "Vector3";
%extend DirectionalLight {
static DirectionalLight* script_new() {
return new DirectionalLight();
}
}
%include "types.h"
%include "constants.h"
%include "Node.h"
@@ -45,4 +54,5 @@ public:
%include "Transform.h"
%include "Material.h"
%include "Camera.h"
%include "Light.h"