getTexelEncodingFunction method

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

Implementation

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