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