Skip to content

scijs/glsl-decibels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert value from and to decibels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published