fix Material#isDefined

This commit is contained in:
pissang 2023-02-12 20:28:41 +08:00
parent 9b042bf9ff
commit bf046c5154

View File

@ -332,7 +332,7 @@ class Material<
*/
isDefined(shaderType: ShaderType, symbol: string) {
// PENDING hasOwnProperty ?
return this.getDefine(shaderType, symbol) === undefined;
return this.getDefine(shaderType, symbol) !== undefined;
}
/**
* Get macro value defined in shader.