aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Scripts/init.lua7
-rw-r--r--Shaders/world.frag2
-rw-r--r--src/render.cpp2
3 files changed, 1 insertions, 10 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua
index 37b1f0d..9b8912f 100644
--- a/Scripts/init.lua
+++ b/Scripts/init.lua
@@ -9,10 +9,6 @@ bird = {
y = 0.0
},
Name = "bord",
- Init = function(self)
- print(self.Position.x .. "," .. self.Position.y)
- print("Bird spawn")
- end,
Render = {
texture = "Assets/player.png",
visible = true
@@ -47,9 +43,6 @@ cat = {
normal = "Assets/cat_normal.png",
visible = true
},
- Init = function(self)
- print(self.Position.x .. "," .. self.Position.y)
- end,
counter = 0;
Idle = function(self)
self.Velocity.x = -100 * math.sin(math.rad(self.counter));
diff --git a/Shaders/world.frag b/Shaders/world.frag
index 5ef399d..4a17a93 100644
--- a/Shaders/world.frag
+++ b/Shaders/world.frag
@@ -19,8 +19,6 @@ uniform int LightNum;
void main()
{
- //vec3 LightPos = vec3(0.0, 0.0, 0.0);
- //vec4 LightColor = vec4(1.0, 1.0, 1.0, 1.0);
vec3 Falloff = vec3(0.1, 0.2, 0.0);
vec4 DiffuseColor = texture2D(textu, texCoord);
diff --git a/src/render.cpp b/src/render.cpp
index bd168ed..d9cc054 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -94,7 +94,7 @@ void RenderSystem::update([[maybe_unused]] entityx::EntityManager& entities,
[&]
(entityx::Entity, Light &l, Position &p){
- lightPos.push_back(glm::vec3(p.x, p.y, 0.0));
+ lightPos.push_back(glm::vec3(p.x, p.y,-10.0));
lightColor.push_back(glm::vec4(l.r, l.g, l.b, l.strength));
lightNum++;
});