Skip to content

Extended Filter3d classes fire an error. #23

@iY0Yi

Description

@iY0Yi

Hi,
When I use my extended Filter3d classes(Gamma correction shader),
It fires an error.

"Uncaught TypeError: Cannot read property 'width' of undefined"

It occurs in Context3D.setRenderToTexture().
And the width is Texture.frameBuffer.width.
Here are the classes for reproducing:
GammaCorrectionFilter3D.ts
https://gist.github.com/GoroMatsumoto/9405246100f029966bdd
Filter3DGammaCorrectionTask.ts
https://gist.github.com/GoroMatsumoto/26fee6124e22c2ed4423

this._filter3ds = new Array<away.filters.Filter3DBase>();
this._filter3ds[0] = new away.filters.GammaCorrectionFilter3D(2.2);
this._view.filters3d = this._filter3ds;

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