浏览代码

Split the surface UnityPerMaterial CB into three (common, simple lighting and PBS).

/tag-1.1.4-preview
Felipe Lira 7 年前
当前提交
edcbd827
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 10
      ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/InputSurface.hlsl

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


#define SAMPLE_METALLICSPECULAR(uv) SAMPLE_TEXTURE2D(_MetallicGlossMap, sampler_MetallicGlossMap, uv)
#endif
CBUFFER_START(UnityPerMaterial)
CBUFFER_START(UnityPerMaterial_Common)
CBUFFER_END
CBUFFER_START(UnityPerMaterial_Simple)
half _Shininess;
CBUFFER_END
CBUFFER_START(UnityPerMaterial_PBS)
half _Shininess;
CBUFFER_END
TEXTURE2D(_MainTex); SAMPLER(sampler_MainTex);

正在加载...
取消
保存