编辑代码

using System;

public class HelloWorld
{
    public static void Main()
    {
       //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
        Console.WriteLine("HELLO world!     - cs.jsrun.net ");
    }

    // https://zhuanlan.zhihu.com/p/409370107
    // fragment
    float3 H = L + N * distortion;
    float sss = pow(saturate(dot(V, -H)), power) * scale;
    

    // diffuse
    float diffuse = max(0, dot(L, N));
    float wrap_diffuse = max(0, (dot(L, N) + _WrapValue) / (1 + _WrapValue));

    return sss + wrap_diffuse;
}