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