Sitelet https://github.com/gpuweb/gpuweb/issues/2766
Skip to content

Specify that texture_external sampling functions clamp coords to [0, 1] #2766

Description

@Kangz

This is because in browsers in general the video might have data around it that's unrelated to the video. The injected shader might be doing a transform on the coord to select a potentially non-aligned rectangle of the video frame. The injected shader does a transform that maps the [0, 1]^2 range correctly, but values outside of that range may be sampling outside of the sub-rectangle of the video frame. To prevent this we can specify that the operations always clamp to [0, 1]^2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

copyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions