浏览代码

Fix the 3D Texture tool

/main
Raymond Graham 6 年前
当前提交
f2c706dc
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/Volumetric/Texture3DCreationEditor.cs

6
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/Volumetric/Texture3DCreationEditor.cs


Color[] colorArray = new Color[0];
for(int i = 0; i < numXTiles; ++i)
for(int i = numYTiles - 1; i >= 0; --i)
for(int j = 0; j < numYTiles; ++j)
for(int j = 0; j < numXTiles; ++j)
Color[] texColor = sourceTexture.GetPixels(i*tileSize, j*tileSize, tileSize, tileSize);
Color[] texColor = sourceTexture.GetPixels(j*tileSize, i*tileSize, tileSize, tileSize);
Array.Resize(ref colorArray, texColor.Length + colorArray.Length);
Array.Copy(texColor, 0, colorArray, colorArray.Length - texColor.Length, texColor.Length);

正在加载...
取消
保存