Learn about our RFC process, Open RFC meetings & more.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

17

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar