Skip to content

SampleFilter.js uniform resolution should be type vec2, not vec3 #1137

@VictoryRice

Description

@VictoryRice

The SampleFilter.js included in the filters directory says in the comments,

By default the following uniforms are already created and available:
...
uniform vec3 resolution - The dimensions of the filter. Can be set via setSize(width, height)

Actually I've found it must be declared as uniform vec2 or else errors ensue. You can see in the Fire.js filter example that it's a vec2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions