Skip to content

Commit

Permalink
Fix silent shader error and pre-compiled shader. This was breaking ti…
Browse files Browse the repository at this point in the history
…les as they were out of sync and incorrect(ish).
  • Loading branch information
jaynus committed Oct 5, 2019
1 parent ecc2c59 commit f8230a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amethyst_tiles/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "amethyst_tiles"
version = "0.1.1"
version = "0.1.2"
authors = ["Walter Pearce <[email protected]>"]
edition = "2018"
description = "2D and 3D Tile Support Library"
Expand Down
Binary file modified amethyst_tiles/compiled/tiles.vert.spv
Binary file not shown.
2 changes: 1 addition & 1 deletion amethyst_tiles/shaders/tiles.vert
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void main() {
vec2 ddir_x = (map_transform[0] * sprite_dimensions.x).xy;
vec2 ddir_y = (map_transform[1] * -sprite_dimensions.y).xy;

vec4 coord = vec4(tile_coordinate.x, -tile_coordinate.y, tile_coordinate.z, 1.0);
vec4 coord = vec4(float(tile_coordinate.x), -float(tile_coordinate.y), float(tile_coordinate.z), 1.0);

vec4 world_coordinate = map_coordinate_transform * coord;
world_coordinate = world_coordinate * map_transform;
Expand Down
8 changes: 8 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ The format is based on [Keep a Changelog][kc], and this project adheres to

### Security

## [0.13.3] - 2019-10-4

### Fixed

* Fixed a silent shader error causing amethyst_tiles not to work. ([#1968])

[#1966]: https://github.com/amethyst/amethyst/pull/1968

## [0.13.2] - 2019-10-4

### Fixed
Expand Down

0 comments on commit f8230a1

Please sign in to comment.