MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / normalToComponent

Function normalToComponent

Three.js/js/ThreeDebug.js:10060–10065  ·  view source on GitHub ↗
( normal )

Source from the content-addressed store, hash-verified

10058 }
10059
10060 function normalToComponent( normal ) {
10061
10062 var component = ( normal + 1 ) * 0.5;
10063 return component < 0 ? 0 : ( component > 1 ? 1 : component );
10064
10065 }
10066
10067 // Hide anti-alias gaps
10068

Callers 2

renderFace3Function · 0.85
renderFace4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected