What is the default light() content?

Godot Version

4.2

Question

In my shader I’m overwritting the void light() { ... } function, but I could not find any way to keep the original content, I just want to modify it, not completely overwrite it. I could not find it in the doc or the source code, or on the internet, anyone can point me the direction ?

Thank you !

While it isn’t the exact same, there is a shader that acts almost identically:
GodotStandardLightShader

From the repo:

This shader attempts to replicate Godot’s default lighting, meant to be used as a starting point for creating a custom lighting shader.

To be more specific, it replicates the look of the Godot 4.1.1 standard material with the Lambert diffuse mode, and the Schlick-GXX specular mode.

Thanks dude you rock!