Skip to content

SecondHalfGames/squisher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Squisher

What?

squisher is a program that takes a glTF or .glb file with PNG/JPG textures and produces a .glb file where the textures have been replaced with ASTC compressed KTX2 files, explicitly breaking the glTF spec: source.

If you want your assets to use optimised textures but don't want to pay the runtime transcoding cost of KHR_texture_basisu, this tool is for you.

Why?

Because hotham works best with compressed textures, and doing this stuff by hand is time consuming. It takes literal minutes. And we all know that a watched pot never boils.

How?

Install squisher with cargo install:

cargo install --git https://github.com/leetvr/squisher.git

Running squisher is easy:

squisher your_file.glb output.glb

Which will produce output.glb, containing ASTC compressed KTX2 textures.

You can also use uncompressed RGBA8 textures:

squisher --format rgba8 your_file.glb output.glb

Requirements

To compile squisher, you need:

  • Rust 1.67.1 or newer

To run squisher you must have the following available on your system PATH:

About

A tool for creating optimised, platform specific glTF files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.5%
  • PowerShell 0.5%