浏览代码

Stripping of MSVO

/projects-TheLastStand
John Parsaie 7 年前
当前提交
cc4e0af0
共有 1 个文件被更改,包括 0 次插入13 次删除
  1. 13
      ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/InputSurface.hlsl

13
ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/InputSurface.hlsl


half _Shininess;
CBUFFER_END
//Begin MSVO Params
TEXTURE2D(_AmbientOcclusionTexture); SAMPLER(sampler_AmbientOcclusionTexture);
CBUFFER_START(UnityAmbientOcclusionParameters)
float4 _AmbientOcclusionParam;
CBUFFER_END
//End MSVO Params
TEXTURE2D(_MainTex); SAMPLER(sampler_MainTex);
TEXTURE2D(_MetallicGlossMap); SAMPLER(sampler_MetallicGlossMap);
TEXTURE2D(_SpecGlossMap); SAMPLER(sampler_SpecGlossMap);

#else
return 1.0;
#endif
}
half MSVO(float4 uv)
{
return 1.0 - SAMPLE_TEXTURE2D(_AmbientOcclusionTexture, sampler_AmbientOcclusionTexture, uv.xy / uv.w).x;
}
half3 Emission(float2 uv)

正在加载...
取消
保存