浏览代码

fix script compile and pssl errors

/main
Paul Melamed 7 年前
当前提交
372a7582
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 3
      ScriptableRenderPipeline/Core/CoreRP/CoreResources/TexturePadding.compute
  2. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Light/HDAdditionalLightData.cs

3
ScriptableRenderPipeline/Core/CoreRP/CoreResources/TexturePadding.compute


const int2 loadId = targetId - int2(1 + dispatchThreadId.x, 0);
#endif
_Source[targetId] = LOAD_TEXTURE2D_LOD(_Source, loadId, 0);
//_Source[targetId] = LOAD_TEXTURE2D_LOD(_Source, loadId, 0);
_Source[targetId] = _Source[loadId];
}

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Light/HDAdditionalLightData.cs


{
lightData.lightTypeExtent = LightTypeExtent.Rectangle;
light.type = LightType.Point; // Same as in HDLightEditor
light.lightmapBakeType = LightmapBakeType.Realtime;
//light.lightmapBakeType = LightmapBakeType.Realtime;
}
// At first init we need to initialize correctly the default value

正在加载...
取消
保存