HD Scene Color Node Code

Hi, I need to use HD Scene Color Node in my custom node, but I can’t find it’s code anywhere. Has anyone done something similar?

EDIT. or is there any way to execute any node in custom node?

bump?

I would just add an input to your custom node where you input the scene color.

But here.

There is a ‘shadergraph_HDSampleSceneColor’ function.

Which you can find here.

So the code would be like this.

SAMPLE_TEXTURE2D_X_LOD(_ColorPyramidTexture, s_trilinear_clamp_sampler, uv * _RTHandleScaleHistory.xy, lod).rgb;