Skip to content

feat: Customize ImageShader properties #62

Description

@Zfinix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions