My Three.js scene uses a canvas as a uniform for a RawShaderMaterial. Once the scene is initially rendered, I modify the canvas by painting it red. Even though I set .needsUpdate = true;
for the shaderMaterial, the points do not change color.
If I move the ctx.fill();
loop above the var material =
declaration, the color does appear on the points.
Is there a specific procedure to update a canvas after the initial render when using the RawShaderMaterial? Any guidance on this issue would be greatly appreciated!
<html>
...