浏览代码

Moved macros to Macros.hlsl

/Add-support-for-light-specular-color-tint
Julien Ignace 7 年前
当前提交
ba464403
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 6
      ScriptableRenderPipeline/Core/ShaderLibrary/Common.hlsl
  2. 6
      ScriptableRenderPipeline/Core/ShaderLibrary/Macros.hlsl

6
ScriptableRenderPipeline/Core/ShaderLibrary/Common.hlsl


}
// MACRO from Legacy Untiy
// Transforms 2D UV by scale/bias property
#define TRANSFORM_TEX(tex, name) ((tex.xy) * name##_ST.xy + name##_ST.zw)
#define GET_TEXELSIZE_NAME(name) (name##_TexelSize)
#endif // UNITY_COMMON_INCLUDED

6
ScriptableRenderPipeline/Core/ShaderLibrary/Macros.hlsl


void FunctionName(inout bool3 a, inout bool3 b) { bool3 t = a; a = b; b = t; } \
void FunctionName(inout bool4 a, inout bool4 b) { bool4 t = a; a = b; b = t; }
// MACRO from Legacy Untiy
// Transforms 2D UV by scale/bias property
#define TRANSFORM_TEX(tex, name) ((tex.xy) * name##_ST.xy + name##_ST.zw)
#define GET_TEXELSIZE_NAME(name) (name##_TexelSize)
#endif // UNITY_MACROS_INCLUDED
正在加载...
取消
保存