Skip to content

Commit

Permalink
Add new sprites and normal maps
Browse files Browse the repository at this point in the history
  • Loading branch information
raatmarien committed May 14, 2015
1 parent 6373992 commit ab9fefc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ void LightManager::initialize(const char* lightMapFilePath

Vector3f falloff;
falloff.x = 1.0f; // Constant falloff
falloff.y = 0.0015f; // Linear falloff
falloff.z = 0.0000012f; // Quadratic falloff
falloff.y = 0.0005f; // Linear falloff
falloff.z = 0.0000002f; // Quadratic falloff

standardLightTexture
= generateLightTexture(500, Color(255,255,255,255)
Expand Down Expand Up @@ -152,7 +152,7 @@ void LightManager::draw(RenderTexture* diffuse
dLightPos.x /= (float) viewRect.width;
dLightPos.y /= (float) viewRect.height;
lightShader.setParameter("lightPos", Vector3f(dLightPos.x, dLightPos.y
, 0.1f));
, 0.3f));
RenderStates states;
states.shader = &lightShader;
states.blendMode = BlendAdd;
Expand Down
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ void draw(RenderWindow* window) {
}

void loadSprites() {
spritesMap.loadFromFile("sprites/spriteMap4.png");
normalTiles.loadFromFile("normalmaps/tilesNormal.png");
spritesMap.loadFromFile("sprites/spriteMap5.png");
normalTiles.loadFromFile("normalmaps/tilesNormal2.png");
playerSprite.loadFromFile("sprites/player.png");
mousePointerTexture.loadFromFile("sprites/mousePointer.png");
}
Binary file added normalmaps/tilesNormal2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/spriteMap5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ab9fefc

Please sign in to comment.