|
@@ -9,6 +9,7 @@ import { Mesh } from "../Meshes/mesh";
|
|
|
import { Camera } from "../Cameras/camera";
|
|
|
import { Effect } from "../Materials/effect";
|
|
|
import { Material } from "../Materials/material";
|
|
|
+import { MaterialHelper } from "../Materials/materialHelper";
|
|
|
import { StandardMaterial } from "../Materials/standardMaterial";
|
|
|
import { Texture } from "../Materials/Textures/texture";
|
|
|
import { RenderTargetTexture } from "../Materials/Textures/renderTargetTexture";
|
|
@@ -201,10 +202,7 @@ export class VolumetricLightScatteringPostProcess extends PostProcess {
|
|
|
// Instances
|
|
|
if (useInstances) {
|
|
|
defines.push("#define INSTANCES");
|
|
|
- attribs.push("world0");
|
|
|
- attribs.push("world1");
|
|
|
- attribs.push("world2");
|
|
|
- attribs.push("world3");
|
|
|
+ MaterialHelper.PrepareAttributesForInstances(attribs, defines);
|
|
|
}
|
|
|
|
|
|
// Get correct effect
|