mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
25 lines
826 B
JavaScript
25 lines
826 B
JavaScript
import applyMatrix4 from './vec3/applyMatrix4.glsl';
|
|
import lengthSq from './vec3/lengthSq.glsl';
|
|
import angleTo from './vec3/angleTo.glsl';
|
|
|
|
import makeOrthographic from './mat4/makeOrthographic.glsl';
|
|
import makePerspective from './mat4/makePerspective.glsl';
|
|
import makePerspective2 from './mat4/makePerspective2.glsl';
|
|
import determinant from './mat4/determinant.glsl';
|
|
import compose from './mat4/compose.glsl';
|
|
import decomposeMatrix from './mat4/decomposeMatrix.glsl';
|
|
|
|
Object.assign(THREE.ShaderChunk, {
|
|
// vec3
|
|
applyMatrix4: applyMatrix4,
|
|
lengthSq: lengthSq,
|
|
angleTo: angleTo,
|
|
|
|
// mat4
|
|
makeOrthographic: makeOrthographic,
|
|
makePerspective: makePerspective,
|
|
makePerspective2: makePerspective2,
|
|
determinant: determinant,
|
|
compose: compose,
|
|
decomposeMatrix: decomposeMatrix,
|
|
}); |