Giter Club home page Giter Club logo

Comments (6)

richgel999 avatar richgel999 commented on September 27, 2024 1

The .basis format supports alpha channels already, but only a few transcoders can handle outputting alpha: ETC2 EAC and BC3, and BC5. The new ASTC transcoder (which will be released on the next milestone) also supports alpha channels. It also has optimizations for L and LA blocks (for XY normal maps) The next milestone also has transcoders for BC7 alpha (using mode 4) and PVRTC1 4bpp alpha (using a new transcoder).

from basis_universal.

toji avatar toji commented on September 27, 2024

Alpha is supported by Basis, but not by every transcode target. It's explained in detail in (this section of the repo readme)[https://github.com/BinomialLLC/basis_universal#gpu-texture-format-support-details], but the short version is that ETC1, BC1, BC7, and PVRTC1 don't support alpha channels with Basis. (Yet. Some of them may support it in the future.) If those are the only formats available to your platform, you'll need to decode the alpha channel as a separate greyscale image (with the cDecodeFlagsTranscodeAlphaDataToOpaqueFormats flag) and sample it separately in your shaders.

from basis_universal.

sehurlburt avatar sehurlburt commented on September 27, 2024

Just wanted to let y'all know that alpha support will be added for PVRTC and BC7 in the next release, which should be coming out in October if testing goes as planned. No contributions needed (it'd be too many cooks in the kitchen at this point, since it's almost done)-- look forward to release!

from basis_universal.

bsergean avatar bsergean commented on September 27, 2024

Thanks @toji and @sehurlburt for the heads up.

from basis_universal.

bsergean avatar bsergean commented on September 27, 2024

I hope that the alpha support will be at least of beta quality ;)

from basis_universal.

richgel999 avatar richgel999 commented on September 27, 2024

As the system already supports alpha, I'm closing this bug. The next milestone (due in a few weeks) will have more transcoders supporting alpha.

from basis_universal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.