|
@@ -188,7 +188,7 @@ export class CustomMaterial extends StandardMaterial {
|
|
this._newUniformInstances = {};
|
|
this._newUniformInstances = {};
|
|
}
|
|
}
|
|
if (param) {
|
|
if (param) {
|
|
- if (kind.indexOf("sampler") == -1) {
|
|
|
|
|
|
+ if (kind.indexOf("sampler") != -1) {
|
|
(<any>this._newSamplerInstances)[kind + "-" + name] = param;
|
|
(<any>this._newSamplerInstances)[kind + "-" + name] = param;
|
|
}
|
|
}
|
|
else {
|
|
else {
|