Custom material quick question

So, I gotta ask a quick question: my scene was working fine yesterday. Today, I’m getting

    at CustomMaterial../custom/customMaterial.ts.CustomMaterial.ReviewUniform (customMaterial.ts:96)
    at CustomMaterial../custom/customMaterial.ts.CustomMaterial.Builder (customMaterial.ts:118)
    at CustomMaterial.t.isReadyForSubMesh (babylon.js:16)
    at t.render (babylon.js:16)
    at t.render (babylon.js:16)
    at Function.e.renderSorted (babylon.js:16)
    at e.renderTransparentSorted (babylon.js:16)
    at e.render (babylon.js:16)
    at e.render (babylon.js:16)
    at t._renderForCamera (babylon.js:16)

from chrome. I see some work on the module in git so was there a breaking change ? My script just needs to render semi transparent planes using custom material. Anyone have recent memory what might have changed ?

edit: forgot to add, error was this._newUniforms is undefined

There had been some changes lately indeed.

Here’s a PR which should correct the problems:

1 Like

Awesome, in the time it took me to find the bug and recreate the PG, the PR is alr in, lol.

edit: fixed pg

Note that your PG has an error, it should be scene instead of this.scene in the CustomMaterial constructor.

1 Like

CustomMaterial Samples i test them by my sample in progress …

1 Like