Kinc to Kore

This commit is contained in:
Gorochu
2026-06-09 13:00:08 -07:00
parent 7558d03739
commit c24828f11d
895 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,33 @@
#pragma once
#include "ogl.h"
#include <Kore/Math/Vector.h>
namespace Kore {
enum LightType { DirectionalLight, PointLight, SpotLight };
class LightImpl {
public:
LightImpl();
virtual ~LightImpl();
protected:
// Submit light parameters to OpenGL (lightID is GL_LIGHT<n> where <n> is in the range [0, 7])
void submitLightParamsToGL(GLenum lightID) const;
// Submit light transformation to OpenGL (lightID is GL_LIGHT<n> where <n> is in the range [0, 7]).
void submitLightTransformToGL(GLenum lightID) const;
LightType myType;
vec4 myAmbient;
vec4 myDiffuse;
vec4 mySpecular;
vec4 myPositionOrDirection;
vec3 mySpotDirection;
float mySpotExponent;
float mySpotCutoff;
float myConstAttn;
float myLinearAttn;
float myQuadricAttn;
};
}