Nightly Procrastination Machine
    Have ideas to improve npm?Join in the discussion! »

    glsl-decibels

    1.0.0 • Public • Published

    glsl-decibels

    stable

    Convert values to and from decibels.

    Usage

    NPM

    varying float value;
     
    #pragma glslify: toGain require('glsl-decibels/to-gain') 
    #pragma glslify: fromGain require('glsl-decibels/from-gain') 
     
    void main() {
      float dbValue = fromGain(value);
      float gainValue = toGain(dbValue);
    }

    Related

    Install

    npm i glsl-decibels

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar