浏览代码

Make "EnvLightData.envIndex" an int

/main
Evgenii Golubev 8 年前
当前提交
8f4d9895
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2
      Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightDefinition.cs
  2. 4
      Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightDefinition.cs.hlsl

2
Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightDefinition.cs


public EnvShapeType envShapeType;
public Vector3 forward;
public float envIndex;
public int envIndex;
public Vector3 up;
public float blendDistance; // blend transition outside the volume

4
Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightDefinition.cs.hlsl


float3 positionWS;
int envShapeType;
float3 forward;
float envIndex;
int envIndex;
float3 up;
float blendDistance;
float3 right;

{
return value.forward;
}
float GetEnvIndex(EnvLightData value)
int GetEnvIndex(EnvLightData value)
{
return value.envIndex;
}

正在加载...
取消
保存