这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@Kangz

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

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