getTexelEncodingFunction method

dynamic getTexelEncodingFunction(
  1. dynamic functionName,
  2. dynamic encoding
)

Implementation

getTexelEncodingFunction(functionName, encoding) {
  var components = getEncodingComponents(encoding);
  return 'vec4 ' +
      functionName +
      '( vec4 value ) { return LinearTo' +
      components[0] +
      components[1] +
      '; }';
}