|
@@ -682,7 +682,7 @@ class RenderObject {
|
|
|
*/
|
|
*/
|
|
|
getMaterialCacheKey() {
|
|
getMaterialCacheKey() {
|
|
|
|
|
|
|
|
- const { object, material } = this;
|
|
|
|
|
|
|
+ const { object, material, renderer } = this;
|
|
|
|
|
|
|
|
let cacheKey = material.customProgramCacheKey();
|
|
let cacheKey = material.customProgramCacheKey();
|
|
|
|
|
|
|
@@ -712,6 +712,18 @@ class RenderObject {
|
|
|
|
|
|
|
|
valueKey += value.mapping;
|
|
valueKey += value.mapping;
|
|
|
|
|
|
|
|
|
|
+ // WebGPU must honor the sampler data because they are part of the bindings
|
|
|
|
|
+
|
|
|
|
|
+ if ( renderer.backend.isWebGPUBackend === true ) {
|
|
|
|
|
+
|
|
|
|
|
+ valueKey += value.magFilter;
|
|
|
|
|
+ valueKey += value.minFilter;
|
|
|
|
|
+ valueKey += value.wrapS;
|
|
|
|
|
+ valueKey += value.wrapT;
|
|
|
|
|
+ valueKey += value.wrapR;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
valueKey += '}';
|
|
valueKey += '}';
|