Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix registerInstancedBuffer after Mesh creation #12609

Merged
merged 9 commits into from
May 31, 2022
Prev Previous commit
Next Next commit
Format
  • Loading branch information
sebavan committed May 23, 2022
commit e775968baa3d0db88729998b115aadb5ec10921e
8 changes: 7 additions & 1 deletion packages/dev/core/src/Materials/standardMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,13 @@ export class StandardMaterial extends PushMaterial {
}

// View
if ((scene.fogEnabled && mesh.applyFog && scene.fogMode !== Scene.FOGMODE_NONE) || this._reflectionTexture || this._refractionTexture || mesh.receiveShadows || defines.PREPASS) {
if (
(scene.fogEnabled && mesh.applyFog && scene.fogMode !== Scene.FOGMODE_NONE) ||
this._reflectionTexture ||
this._refractionTexture ||
mesh.receiveShadows ||
defines.PREPASS
) {
this.bindView(effect);
}

Expand Down