mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
0ecaa8db51
* add surface shader * remove unused item * arrange main-functions * arrange main-functions * fix compatible lighting mode
14 lines
325 B
Plaintext
14 lines
325 B
Plaintext
struct LightingResult
|
|
{
|
|
// material-dependent lighting data
|
|
vec3 diffuseColorWithLighting, specularColorWithLighting;
|
|
|
|
// pure lighting
|
|
vec3 directDiffuse, directSpecular;
|
|
vec3 environmentDiffuse, environmentSpecular;
|
|
float shadow, ao;
|
|
vec3 lightmapColor;
|
|
vec3 emissive;
|
|
//vec3 transmittance, scattered;
|
|
};
|