Skip to content

Commit

Permalink
TextureArrayCpuPolygonSpriteBatch is now the default batch
Browse files Browse the repository at this point in the history
  • Loading branch information
fgnm committed Oct 18, 2023
1 parent fd95c9d commit b79d4aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Bug fixing and stability improvements

**Runtime**
- [BREAK CHANGE] `TextureArrayCpuPolygonSpriteBatch` is now the default batch implementation
- [BREAK CHANGE] New `MainItemComponent#uniqueId` management, change from integer to a random string
- Chained Entities and Spine' SkeletonRenderSeparator
- Improved PhysicsActions. Add `PhysicsActions#transformTo` and `PhysicsActions#transformBy`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void clicked(InputEvent event, float x, float y) {
}
});

String[] data = {"Simple", "Simple Array", "Distance Field", "Screen Reading"};
String[] data = {"Simple", "Distance Field", "Screen Reading"};
newShaderTypeSelectBox = StandardWidgetsFactory.createSelectBox(String.class);
newShaderTypeSelectBox.setItems(data);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,14 @@ private void createNewShader(String name, int type) {

switch (type) {
case 0:
vertex = DefaultShaders.DEFAULT_VERTEX_SHADER;
fragment = DefaultShaders.DEFAULT_FRAGMENT_SHADER;
break;
case 1:
vertex = DefaultShaders.DEFAULT_ARRAY_VERTEX_SHADER;
fragment = DefaultShaders.DEFAULT_ARRAY_FRAGMENT_SHADER;
break;
case 2:
case 1:
vertex = DefaultShaders.DISTANCE_FIELD_VERTEX_SHADER;
fragment = DefaultShaders.DISTANCE_FIELD_FRAGMENT_SHADER;
break;
case 3:
case 2:
vertex = DefaultShaders.DEFAULT_SCREE_READING_VERTEX_SHADER;
fragment = DefaultShaders.DEFAULT_SCREE_READING_FRAGMENT_SHADER;
break;
Expand Down

0 comments on commit b79d4aa

Please sign in to comment.