ShaderFilter
Abstract class for Views that paints the Texture using a FragmentShader (fragment).
Inherited versions of this filter, usually inherit computeBorder and fragment properties.
When building shaders by calling FragmentShader { ... }, you will have additionally access to: fragmentCoords, fragmentCoords01 properties and tex method to be used inside the shader.
Inheritors
Types
Link copied to clipboard
Link copied to clipboard
interface ProgramProvider
Link copied to clipboard
Properties
Functions
Link copied to clipboard
The number of pixels the passed texture should be bigger at each direction: left, right, top, left.
Link copied to clipboard
Link copied to clipboard
open override fun render(ctx: RenderContext, matrix: Matrix, texture: Texture, texWidth: Int, texHeight: Int, renderColorMul: RGBA, blendMode: BlendMode, filterScale: Double)
The method in charge of rendering the texture transformed using ctx and matrix. The method receives a texture that should be the original image with computeBorder additional pixels on each side.
Link copied to clipboard
Link copied to clipboard
fun Filter.renderToTextureWithBorderUnsafe(ctx: RenderContext, matrix: Matrix, texture: Texture, texWidth: Int, texHeight: Int, filterScale: Double, result: RenderToTextureResult = RenderToTextureResult()): RenderToTextureResult