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
22 lines
396 B
Plaintext
22 lines
396 B
Plaintext
struct SurfacesMaterialData
|
|
{
|
|
HIGHP_VALUE_STRUCT_DEFINE(vec3, worldPos);
|
|
|
|
vec4 baseColor;
|
|
vec3 worldNormal;
|
|
vec3 emissive;
|
|
|
|
float specularIntensity;
|
|
float roughness;
|
|
float metallic;
|
|
float ao;
|
|
|
|
// for advanced PBR
|
|
vec3 worldTangent, worldBinormal;
|
|
#if CC_SURFACES_LIGHTING_ANISOTROPIC
|
|
float anisotropyShape;
|
|
#endif
|
|
// float transmittanceFactor;
|
|
// float sssCurvature;
|
|
};
|