Skip to content

API for changing mag-filter of render target texture? #13

@Erkaman

Description

@Erkaman

Right now, you cannot specify the mag-filter of the render target color texture of the fbo in the API. But I think it would be useful if you could do that. My use case of that would be the following: In order to save performance, I am rendering to an FBO that is half the size of the screen(instead of the full screen size). I then use that FBO in a fullscreen pass in a shader. But since the mag-filter is always GL_NEAREST, this results in terrible artefacts(notice the artefacts in the bottom):

screen shot 2016-04-15 at 23 56 48

But if I change the mag-filter to GL_LINEAR, the problem is solved:

screen shot 2016-04-15 at 23 57 00

For this reason, I think it would be good if you could change the mag-filter through the API. Is it possible to add this feature to the API?

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