精华内容
下载资源
问答
  • diffuse
    2021-07-10 10:58:11

    Diffuse Fast

    Diffuse Fast看名字就知道是个阉割版的Diffuse,代码更是少到算上括号才7行。真的不是我在水篇数,他自己就7行。一眼就看完了:

    Shader "Legacy Shaders/Diffuse Fast" {
        //只采样主纹理,再叠加个颜色完事
    Properties {
        _Color ("Main Color", Color) = (1,1,1,1)
        _MainTex ("Base (RGB)", 2D) = "white" {}
    }
    //相当于只有_Color和_MainTex的VertexLit Shader
    Fallback "Legacy Shaders/VertexLit"
    }

    Diffuse

    Specular

    删掉法线的Bumped Specular,略

    更多相关内容
  • Diffuse-开源

    2021-04-14 01:43:42
    漫反射是用于比较和合并文本文件的图形工具。 它可以从Bazaar,CVS,Darcs,Git,Mercurial,Monotone,RCS,Subversion和SVK存储库中检索文件进行比较。
  • 该功能可以在图像具有错误值的区域时更正图像。 使用的方法是线性插值和漫反射的线性组合。 弥散插值取决于以像素边界为中心的组矩阵。
  • Diffuse2Direct:使用网络扩散技术的蛋白质-蛋白质相互作用网络的方向
  • diffuse-0.4.6-2.win32.zip,diffuse-0.4.6-2.win32.exe
  • HRTFs wavs measured in diffuse
  • DirectX 9.0 Diffuse Demo

    2014-05-24 19:22:29
    Diffuse_Demo_CSDN.zip,Diffuse_Demo_CSDN.vcxproj.filters,MyEngine.cpp,Diffuse_Demo_CSDN.vcxproj,MyApp.cpp,Diffuse.fx,CubeDemo.cpp,MyUtil.cpp,MyVertex.cpp,MyInput.h,MyStats.cpp,main.cpp,MyD3d.cpp,...
  • diffuse 文件比较器

    2016-05-26 12:58:15
    diffuse 文件比较器
  • Diffuse代码比较工具

    2013-10-15 09:13:14
    Diffuse代码比较工具特点: 可视化比较,非常直观。 支持两相比较和三相比较。这就是说,使用 Diffuse 你可以同时比较两个或三个文本文件。 支持常见的版本控制工具,包括 CVS、subversion、git、mercurial 等。你...
  • Unity Shader Diffuse

    千次阅读 2022-03-08 15:49:55
    Shader "Custom/... } ENDCG } } FallBack "Diffuse" } 对顶点进行合适的mvp变换 在同一的坐标空间里计算法向量与光向量的点积 顶点程序计算光照执行效率高,片段程序计算光照较慢(现代硬件以克服)但更细腻平滑
    Shader "Custom/MyDiffuse"
    {
        SubShader
        {
            pass{
                tags{"LightMode" = "ForwardBase"}
    
                CGPROGRAM
    
                #pragma vertex vert
    			#pragma fragment frag
    
                #include "unitycg.cginc"
                #include "lighting.cginc"
    
    
                struct v2f {
                    float4 pos:POSITION;
                    float4 col:COLOR;
                };
    
                v2f vert(appdata_base v)
                {
                    v2f o;
                    o.pos = UnityObjectToClipPos(v.vertex);
                    float3 N = normalize(v.normal);// 法向量
                    float3 L = normalize(_WorldSpaceLightPos0);// 灯光向量
    
                    // 对于光照的计算必须要求法向量和光向量处于同一坐标空间
                    // L = mul(unity_WorldToObject, float4(L,0)).xyz;// 把光向量旋转到模型空间
                    // N = mul(unity_ObjectToWorld, float4(N, 0)).xyz;// 把法向量旋转到世界空间
    
                    // 解决非等比缩放问题(需要用到法线矩阵,法线矩阵被定义为「模型矩阵左上角的逆矩阵的转置矩阵」)
                    // unity_WorldToObject和unity_ObjectToWorld互为逆矩阵
                    // mul的两种用法,把变化的矩阵放在第一位数,正常使用,调换两个矩阵的位置可得到转置矩阵
                    N = mul(float4(N, 0),unity_WorldToObject).xyz;
                    N = normalize(N);
    
                    float dot1 = saturate(dot(N,L));// 光的强度=法向量和灯光向量的点击,取0-1,负数颜色无意义
                    o.col = _LightColor0 * dot1;// 颜色赋值
    
                    return o;
                }
    
                fixed4 frag(v2f IN):COLOR
                {
                    return IN.col+UNITY_LIGHTMODEL_AMBIENT;
                }
    
                ENDCG
            }
        }
        FallBack "Diffuse"
    }
    
    • 对顶点进行合适的mvp变换
    • 在同一的坐标空间里计算法向量与光向量的点积
    • 顶点程序计算光照执行效率高,片段程序计算光照较慢(现代硬件以克服)但更细腻平滑
    展开全文
  • Diffuse Lung Disease

    2012-10-04 08:36:04
    Diffuse Lung Disease Practical Approach 编者:Robert P. Baughman,Roland M. du Bois Interstitial lung diseases comprise a significant part of any respiratory medicine practice. This timely second ...
  • Diffuse Double Layer with Charge_Transfer
  • anisotrophic diffuse 图像算法
  • diffuse inter

    2014-10-25 10:47:06
    rotor stator interaction in a pump
  • Tandem diffuse cubic cavities designed by connecting two single diffuse cubic-shaped cavities, A and B, with an aperture (port fraction f(ap)) in the middle of the connecting baffle was developed as a...
  • 分解diffuse 和specular 的图像处理程序
  • Ozma Diffuse Tree.rar模型资源unity模型资源下载Ozma Diffuse Tree.rar模型资源unity模型资源下载Ozma Diffuse Tree.rar模型资源unity模型资源下载 1.合个人学习技术做项目参考 2.适合学生做毕业设计项目参考 3....
  • diffuse代码比较工具

    2014-09-09 10:58:28
    diffuse代码比较工具,能够很好的比较两个页面的不同之处。
  • diffuse 代码比较工具

    2014-06-13 14:27:31
    diffuse.rar,diffuse,diffuse-0.4.7-1.win32.exe
  • albedo diffuse specular

    2020-08-24 14:14:34
  • Diffuse! #@title Do the Run! #@markdown `n_batches` ignored with animation modes. display_rate = 10 #@param{type: 'number'} n_batches = 50 #@param{type: 'number'} #Update Model Settings timestep_...

    # 4. Diffuse!

    #@title Do the Run!
    #@markdown `n_batches` ignored with animation modes.
    display_rate =  10 #@param{type: 'number'}
    n_batches =  50 #@param{type: 'number'}

    #Update Model Settings
    timestep_respacing = f'ddim{steps}'
    diffusion_steps = (1000//steps)*steps if steps < 1000 else steps
    model_config.update({
        'timestep_respacing': timestep_respacing,
        'diffusion_steps': diffusion_steps,
    })

    batch_size = 1

    def move_files(start_num, end_num, old_folder, new_folder):
        for i in range(start_num, end_num):
            old_file = old_folder + f'/{batch_name}({batchNum})_{i:04}.png'
            new_file = new_folder + f'/{batch_name}({batchNum})_{i:04}.png'
            os.rename(old_file, new_file)

    #@markdown ---


    resume_run = False #@param{type: 'boolean'}
    run_to_resume = 'latest' #@param{type: 'string'}
    resume_from_frame = 'latest' #@param{type: 'string'}
    retain_overwritten_frames = False #@param{type: 'boolean'}
    if retain_overwritten_frames is True:
      retainFolder = f'{batchFolder}/retained'
      createPath(retainFolder)


    skip_step_ratio = int(frames_skip_steps.rstrip("%")) / 100
    calc_frames_skip_steps = math.floor(steps * skip_step_ratio)


    if steps <= calc_frames_skip_steps:
      sys.exit("ERROR: You can't skip more steps than your total steps")

    if resume_run:
      if run_to_resume == 'latest':
        try:
          batchNum
        except:
          batchNum = len(glob(f"{batchFolder}/{batch_name}(*)_settings.txt"))-1
      else:
        batchNum = int(run_to_resume)
      if resume_from_frame == 'latest':
        start_frame = len(glob(batchFolder+f"/{batch_name}({batchNum})_*.png"))
        if animation_mode != '3D' and turbo_mode == True and start_frame > turbo_preroll and start_frame % int(turbo_steps) != 0:
          start_frame = start_frame - (start_frame % int(turbo_steps))
      else:
        start_frame = int(resume_from_frame)+1
        if animation_mode != '3D' and turbo_mode == True and start_frame > turbo_preroll and start_frame % int(turbo_steps) != 0:
          start_frame = start_frame - (start_frame % int(turbo_steps))
        if retain_overwritten_frame

     

     

    展开全文
  • Diffuse Optical Spectroscopy (DOS) is a promising non-invasive and non-ionizing technique for breast anomaly detection. In this study, we have developed a new handheld DOS probe to measure optical ...
  • 一维扩散模型,高斯模型,大气扩散,理论建模
  • GBuffer.DiffuseColor = GBuffer.BaseColor - GBuffer.BaseColor * GBuffer.Metallic; GBuffer.SpecularColor = ComputeF0(GBuffer.Specular, GBuffer.BaseColor, GBuffer.Metallic); ShadingCommon.ush float ...
  • Diffuse Detail(漫反射细节)其实就是在原有纹理上叠加了一个贴图,然后由于混合方式是乘法会导致颜色变暗,就需要再乘一个参数使整体变得更亮。 所以如果叠加两张一样的会起到暗的更暗,亮的更亮的效果,如下 ...
  • Steady-state diffuse reflectance based on P3 approximation is studied at short source-detector separations. In many practical applications, we can only measure the diffuse reflectance light close to ...
  • 代码比较工具(Diffuse)

    2021-03-05 17:45:54
    这就是说,使用 Diffuse 你可以同时比较两个或三个文本文件。最吸引人的还是他是开源的。我们不需要支付任何费用,你可以下载他们的在线帮助手册来获取实践代码比较工具,体积小巧功能强大,而且同时支持window...
  • Bumped(凹凸) Diffuse(漫反射),凹凸漫反射,就是我们Shader中最最基础的,只有三项可以设置: 1.Main Color颜色 2.Base (RGB)漫反射贴图 3.Normalmap法线贴图 image.png 看到可设置的项基本就知道了这个shader...
  • In this paper, the propagation characteristics of near-infrared (NIR) light in the palm tissue are analyzed, and the principle and feasibility of using transcutaneous diffuse reflectance spectroscopy ...
  • The concept of region of sensitivity is central to the field of diffuse optics and is closely related to the Jacobian matrix used to solve the inverse problem in imaging. It is well known that, in ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 27,434
精华内容 10,973
关键字:

diffuse