umbra icon indicating copy to clipboard operation
umbra copied to clipboard

feat: Customize ImageShader properties

Open Zfinix opened this issue 2 years ago • 0 comments

Description

Currently, there is no way to set the properties of samplerUniforms so if you define a sample e.g.

uniform sampler2D iChannel0;

In the generated dart you get:

  return program.shader(
      floatUniforms: Float32List.fromList(...),
      samplerUniforms: [
        ImageShader(
          iChannel0,
          TileMode.repeated,
          TileMode.repeated,
          UmbraShader.identity,
        ),
      ],
    );

Requirements I want to be able to define ImageShader's TileMode tmx, TileMode tmy and Float64List matrix4, values without having it revert back to default values each time I generate shaders.

Zfinix avatar Jan 28 '23 20:01 Zfinix