How to view the source code of BaseMaterial3D?

Godot Version

4.6.2

Question

I want to add some functions of BaseMaterial3D to my own shader like triplanar, how can i get the source code?

The godot source code is a good place to start I would imagine.

means only cpp? OMG.

You can convert the material to a ShaderMaterial by right-clicking over it and clicking on Convert to ShaderMaterial You’ll be able to see the shader code this way.