Wire material properties texture into AntsComputeScene
This commit is contained in:
parent
cb43ebfe83
commit
94b0393abb
2 changed files with 3 additions and 0 deletions
|
|
@ -202,6 +202,8 @@ export default class Renderer {
|
|||
this.resources.worldBlurredRenderTarget.texture;
|
||||
scenes.ants.material.uniforms.tPresence.value =
|
||||
this.resources.antsPresenceRenderTarget.texture;
|
||||
scenes.ants.material.uniforms.uMaterialProps.value =
|
||||
this.materialPropsTexture;
|
||||
this.renderer.render(scenes.ants, scenes.ants.camera);
|
||||
|
||||
this.setViewportFromRT(this.resources.antsDiscreteRenderTarget);
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ export default class AntsComputeScene extends AbstractScene {
|
|||
tLastExtState: { value: null },
|
||||
tWorld: { value: null },
|
||||
tPresence: { value: null },
|
||||
uMaterialProps: { value: null },
|
||||
uForagerRatio: { value: 0 },
|
||||
},
|
||||
vertexShader,
|
||||
|
|
|
|||
Loading…
Reference in a new issue