mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
dfc3d141f2
* gfx: descriptor sets * gfx: descriptor set, singular * better structure * adapt upper layers: first pass finally all compiler errors cleared. OKAY IT'S HAPPENING EVERYBODY STAY THE ****ING CALM * adapt upper layers: second pass THERE AND BACK AGAIN * unified light pass & shadow shader * gfx: descriptor set & pipeline layout * light pass: better structure * light pass: dynamic uniform * even more type checking for memory pools * Fix particleSystem and lineComponent. * delete comment * guard pool init param * Fix trail module error. * delete space * light pass: instancing & batching support * don't polyfill gfx stuff inside EffectAsset * better light pass structure * fix spot light culling Co-authored-by: caryliu <caryliu1999@gmail.com>
9 lines
227 B
Plaintext
9 lines
227 B
Plaintext
// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
|
|
|
|
#define IBL_RGBA 1
|
|
#define IBL_RGBE 2
|
|
#pragma define CC_USE_IBL range([0, 2])
|
|
|
|
#pragma builtin(global)
|
|
layout(set = 0, binding = 3) uniform samplerCube cc_environment;
|