浏览代码

Fix the tile index used by TileVariantToFeatureFlags()

/main
Evgenii Golubev 7 年前
当前提交
721af051
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/Deferred.compute

4
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/Deferred.compute


uint2 tileCoord = uint2(tileIndex & 0xFFFF, tileIndex >> 16);
uint2 pixelCoord = tileCoord * GetTileSize() + groupThreadId;
uint featureFlags = TileVariantToFeatureFlags(VARIANT, tileIndex);
uint screenWidth = (uint)_ScreenSize.x;
uint numTilesX = (screenWidth + 15) / 16;
uint featureFlags = TileVariantToFeatureFlags(VARIANT, tileCoord.x + tileCoord.y * numTilesX);
#else
// Direct

正在加载...
取消
保存