Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Vector2 } from 'three';
/**
* Convolution shader
* ported from o3d sample to WebGL / GLSL
* http://o3d.googlecode.com/svn/trunk/samples/convolution.html
*/
import type { IUniform, Texture } from 'three';
import type { IShader } from './types';
export type ConvolutionShaderDefines = {
KERNEL_SIZE_FLOAT: string;
KERNEL_SIZE_INT: string;
};
export type ConvolutionShaderUniforms = {
cKernel: IUniform<number[]>;
tDiffuse: IUniform<Texture | null>;
uImageIncrement: IUniform<Vector2>;
};
export interface IConvolutionShader extends IShader<ConvolutionShaderUniforms, ConvolutionShaderDefines> {
buildKernel: (sigma: number) => number[];
}
export declare const ConvolutionShader: IConvolutionShader;