Skip to content

Extended Filter3d classes fire an error. #23

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;

Activity

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

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