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

Function getTexelEncodingFunction

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

Source from the content-addressed store, hash-verified

28567 }
28568
28569 function getTexelEncodingFunction( functionName, encoding ) {
28570
28571 var components = getEncodingComponents( encoding );
28572 return "vec4 " + functionName + "( vec4 value ) { return LinearTo" + components[ 0 ] + components[ 1 ] + "; }";
28573
28574 }
28575
28576 function getToneMappingFunction( functionName, toneMapping ) {
28577

Callers 1

three.jsFile · 0.85

Calls 1

getEncodingComponentsFunction · 0.85

Tested by

no test coverage detected