* update sampler textures * simplyfy --------- Co-authored-by: aardgoose <[email protected]>
@@ -122,6 +122,10 @@ class Bindings extends DataMap {
}
+ } else if ( binding.isSampler ) {
+
+ binding.update();
} else if ( binding.isSampledTexture ) {
const texture = binding.texture;
@@ -10,6 +10,12 @@ class NodeSampler extends Sampler {
+ update() {
+ this.texture = this.textureNode.value;
+ }
export default NodeSampler;