Buckets:
ktongue/docker_container / simsite /frontend /node_modules /three-stdlib /shaders /ConvolutionShader.d.ts
| 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; | |
Xet Storage Details
- Size:
- 734 Bytes
- Xet hash:
- 67b2288e7c21ae001f735c29112e3a963d32eae185d1561f92be62d9b39b339f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.