浏览代码

CBUFFER _PerMaterial is now for both lit & tesselation shader

/batch_rendering
Arnaud Carre 7 年前
当前提交
4a9493de
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 9
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitProperties.hlsl

9
Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitProperties.hlsl


CBUFFER_START(_PerMaterial)
// shared constant between lit and layered lit
float _AlphaCutoff;
float4 _DoubleSidedConstants;

float3 _EmissionColor;
#ifndef LAYERED_LIT_SHADER
CBUFFER_START(_PerMaterial)
// Set of users variables
float4 _BaseColor;

float4 _UVMappingMask;
float4 _UVDetailsMappingMask;
CBUFFER_END
#else // LAYERED_LIT_SHADER

float _TessellationObjectScale;
float _TessellationTilingScale;
#endif
CBUFFER_END
正在加载...
取消
保存