浏览代码

Fixed Texcoord debug rendering.

/main
Julien Ignace 8 年前
当前提交
49d22f53
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      Assets/ScriptableRenderLoop/HDRenderLoop/Material/Attributes.hlsl

8
Assets/ScriptableRenderLoop/HDRenderLoop/Material/Attributes.hlsl


switch (paramId)
{
case DEBUGVIEWVARYING_TEXCOORD0:
result = float3(input.texCoord0 * 0.5 + 0.5, 0.0);
result = float3(input.texCoord0, 0.0);
result = float3(input.texCoord1 * 0.5 + 0.5, 0.0);
result = float3(input.texCoord1, 0.0);
result = float3(input.texCoord2 * 0.5 + 0.5, 0.0);
result = float3(input.texCoord2, 0.0);
result = float3(input.texCoord3 * 0.5 + 0.5, 0.0);
result = float3(input.texCoord3, 0.0);
break;
case DEBUGVIEWVARYING_VERTEX_TANGENT_WS:
result = input.tangentToWorld[0].xyz * 0.5 + 0.5;

正在加载...
取消
保存