fallback baidu not support shadow for v3.4.1 (#9897)

This commit is contained in:
troublemaker52025
2022-01-05 23:27:11 +08:00
committed by GitHub
parent 17e0e7ea7b
commit 69cd9f5c23
+6 -1
View File
@@ -25,7 +25,7 @@
*/
import { ccclass, visible, type, displayOrder, readOnly, slide, range, rangeStep, editable, serializable, rangeMin, tooltip, formerlySerializedAs, displayName, help } from 'cc.decorator';
import { EDITOR } from 'internal:constants';
import { BAIDU, EDITOR } from 'internal:constants';
import { TextureCube } from '../assets/texture-cube';
import { CCFloat, CCBoolean, CCInteger } from '../data/utils/attribute';
import { Color, Quat, Vec3, Vec2, Vec4 } from '../math';
@@ -696,6 +696,11 @@ export class ShadowsInfo {
}
}
get enabled () {
if (BAIDU) {
if (this._type !== ShadowType.Planar) {
this._enabled = false;
}
}
return this._enabled;
}