Files
cocos4/editor/assets/chunks/cc-forward-light.chunk
T
Jare Guo 0319477911 fix decorator warning of ValueTypes (#7553)
* fix decorator warning of ValueTypes (sync #6285)

* refresh copyright
2020-10-21 16:31:41 +08:00

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
};