Files
cocos4/cocos/rendering/enum.ts
T
fqamic d4055f7e32 new basic capabilities of supporting handset ar and webxr (#13420)
* feat: add the basic capability of handset ar native

* feat: add handset input device, for ar camera pose

* feat: native pack tool supports xr platform name

* feat: web gl context supports webxr

* feat: webxr has been converted to screen coordinates via camera

* fix: pr ts-expect-error undefined xr

* feat: support webxr, and remove ar redundant code

* fix:xr-spaces gradlew permission error

* feat: revert redundant ar engine feature

* fix: eslint check error

* feat: remove redundant code

* fix: eslint check warning

* adjust armodule process in forward stage, mtl texture and jsb

* fix: exlint warning, and add license

* adjust ar lib and interfaces

* change webxr check interface

* merge external arlib header and move it to engine

* improve: update native external version

* move ar background stage to xr/rendering and move its init to webxr device in xr plugin

* fix format error

* fix format error

* adjust jsb_ar_manual, ARModule, ARBackground

* adjust arbackground

Co-authored-by: Parryzhai <1306895355@qq.com>
Co-authored-by: MoHai <1192652394@qq.com>
2022-11-24 13:33:50 +08:00

70 lines
2.0 KiB
TypeScript

/*
Copyright (c) Huawei Technologies Co., Ltd. 2020-2021.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to use Cocos Creator solely to develop games on your target platforms. You shall
not use Cocos Creator software for developing other software or tools that's
used for developing games. You are not granted to publish, distribute,
sublicense, and/or sell copies of Cocos Creator.
The software or tools in this License Agreement are licensed, not sold.
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
export enum CommonStagePriority {
BLOOM = 18,
POST_PROCESS = 19,
UI = 20
}
/**
* @zh 前向阶段优先级。
* @en The priority of stage in forward rendering
*/
export enum ForwardStagePriority {
AR = 5,
FORWARD = 10,
}
/**
* @zh 前向渲染流程优先级。
* @en The priority of flows in forward rendering
*/
export enum ForwardFlowPriority {
SHADOW = 0,
FORWARD = 1,
UI = 10,
}
/**
* @zh 延迟阶段优先级。
* @en The priority of stage in forward rendering
*/
export enum DeferredStagePriority {
GBUFFER = 10,
LIGHTING = 15,
TRANSPARENT = 18
}
/**
* @zh 延迟渲染流程优先级。
* @en The priority of flows in forward rendering
*/
export enum DeferredFlowPriority {
SHADOW = 0,
MAIN = 1,
UI = 10,
}