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
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));
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);
[&]
(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++;
});