Wire material properties texture into AntsComputeScene

This commit is contained in:
Jared Miller 2026-03-11 15:22:25 -04:00
parent cb43ebfe83
commit 94b0393abb
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C
2 changed files with 3 additions and 0 deletions

View file

@ -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);

View file

@ -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,