mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fallback baidu not support shadow for v3.4.1 (#9897)
This commit is contained in:
committed by
GitHub
parent
17e0e7ea7b
commit
69cd9f5c23
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user