MCPcopy Create free account
hub / github.com/divan/gotrace / getTexelDecodingFunction

Function getTexelDecodingFunction

page/js/three.js:28562–28567  ·  view source on GitHub ↗
( functionName, encoding )

Source from the content-addressed store, hash-verified

28560 }
28561
28562 function getTexelDecodingFunction( functionName, encoding ) {
28563
28564 var components = getEncodingComponents( encoding );
28565 return "vec4 " + functionName + "( vec4 value ) { return " + components[ 0 ] + "ToLinear" + components[ 1 ] + "; }";
28566
28567 }
28568
28569 function getTexelEncodingFunction( functionName, encoding ) {
28570

Callers 1

three.jsFile · 0.85

Calls 1

getEncodingComponentsFunction · 0.85

Tested by

no test coverage detected