orillusion
orillusion copied to clipboard
[BUG]: onCompute function waste of resources
Describe the bug
onCompute function in meshRendererhas some action , but some static mesh not use this function . this is a waste of resources . you can create a new meshRendererhasto fix this .
Orillusion engine version
State the version you use for developement, e.g. 0.6.0
Desktop (please complete the following information)
- OS: [e.g. win, mac, android]
- Browser [e.g. chrome]
- Version [e.g. 113]
Code demo link
MeshRenderer.ts
protected onCompute(view: View3D, command: GPUCommandEncoder): void {
if (this.morphData && this.morphData.enable) {
this.morphData.computeMorphTarget(command);
}
}