Files
cocos4/editor/assets/chunks/surfaces/data-structures/toon.chunk
T
jk20012001 0ecaa8db51 add surface shader (#11048)
* add surface shader

* remove unused item

* arrange main-functions

* arrange main-functions

* fix compatible lighting mode
2022-05-13 21:18:22 +08:00

18 lines
285 B
Plaintext

struct SurfacesMaterialData
{
HIGHP_VALUE_STRUCT_DEFINE(vec3, worldPos);
vec4 baseColor;
vec4 specular;
vec3 worldNormal;
vec3 emissive;
vec3 shade1;
vec3 shade2;
float baseStep;
float baseFeather;
float shadeStep;
float shadeFeather;
float shadowCover;
};