mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
0319477911
* fix decorator warning of ValueTypes (sync #6285) * refresh copyright
11 lines
435 B
Plaintext
11 lines
435 B
Plaintext
// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
|
|
#define LIGHTS_PER_PASS 1
|
|
|
|
#pragma builtin(local)
|
|
layout(set = 2, binding = 1) uniform CCForwardLight {
|
|
highp vec4 cc_lightPos[LIGHTS_PER_PASS]; // xyz: pos, w: isSpotLight
|
|
vec4 cc_lightColor[LIGHTS_PER_PASS]; // xyz: color, w: intensity
|
|
vec4 cc_lightSizeRangeAngle[LIGHTS_PER_PASS]; // x: size, y: range, z: spotAngle
|
|
vec4 cc_lightDir[LIGHTS_PER_PASS]; // xyz: dir
|
|
};
|