mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
13 lines
754 B
Plaintext
13 lines
754 B
Plaintext
// modify final lighting result for user-defined lighting models
|
|
// this function invokes at end of lighting flow
|
|
// should use lightingData for light direction and distance, and miscData for light color and intensity
|
|
// should use common lighting-model and corresponding shading-model header before function define
|
|
//#include <lighting-models/includes/common> for simple modification or <lighting-models/includes/xxx> for invoking lighting-model module functions
|
|
//#include <surfaces/data-structures/XXX>
|
|
|
|
// #define CC_SURFACES_LIGHTING_MODIFY_FINAL_RESULT
|
|
// void SurfacesLightingModifyFinalResult(inout LightingResult result, in LightingIntermediateData lightingData, in SurfacesMaterialData surfaceData, in LightingMiscData miscData)
|
|
// {
|
|
// }
|
|
|