first commit

This commit is contained in:
rafaeldpsilva
2025-12-10 12:32:12 +00:00
commit adbbf6bf50
3442 changed files with 2725681 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { dot, Fn, vec3, vec4 } from 'three/tsl';
export const sepia = /*@__PURE__*/ Fn( ( [ color ] ) => {
const c = vec3( color );
// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/sepia.js
return vec4(
dot( c, vec3( 0.393, 0.769, 0.189 ) ),
dot( c, vec3( 0.349, 0.686, 0.168 ) ),
dot( c, vec3( 0.272, 0.534, 0.131 ) ),
color.a
);
} );