Methods
_getFilterColor
- _getFilterColor(color?: string | number | Color, opacity?: number): Color
Parameters
color: string | number | Color = '#000000'
opacity: number = 1
Returns Color
_getFilterShaderData
- _getFilterShaderData(texture: Texture): { fragmentShader: string; uniforms: { colorMatrix: { value: Matrix4 }; e_Texture: { value: Texture } }; vertexShader: string }
Parameters
Returns { fragmentShader: string; uniforms: { colorMatrix: { value: Matrix4 }; e_Texture: { value: Texture } }; vertexShader: string }
fragmentShader: string
uniforms: { colorMatrix: { value: Matrix4 }; e_Texture: { value: Texture } }
colorMatrix: { value: Matrix4 }
e_Texture: { value: Texture }
vertexShader: string
channel
- channel(__namedParameters: ChannelParamTypes): MxFilters
Parameters
__namedParameters: ChannelParamTypes
convolution
- convolution(cKernel: Matrix3, stStep?: number, scaleFactor?: number): MxFilters
Parameters
cKernel: Matrix3
stStep: number = ...
scaleFactor: number = 521
改变亮度