Skip to content

Commit 0ee4c2f

Browse files
HDRenderLoop: Remove warning in skyRender.cs
1 parent c038c29 commit 0ee4c2f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Assets/ScriptableRenderLoop/HDRenderLoop/Sky/SkyRenderer.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,21 @@ private void RenderCubemapGGXConvolution(Texture input, RenderTexture target, Re
247247
}
248248

249249
// Copy the first mip.
250+
251+
// TEMP code until CopyTexture is implemented for command buffer
250252
// All parameters are neutral because exposure/multiplier have already been applied in the first copy.
251253
SkyParameters skyParams = new SkyParameters();
252254
skyParams.exposure = 0.0f;
253255
skyParams.multiplier = 1.0f;
254256
skyParams.rotation = 0.0f;
255257
skyParams.skyHDRI = input;
256258
RenderSkyToCubemap(skyParams, target, renderLoop);
259+
// End temp
260+
261+
//
262+
//for (int f = 0; f < 6; f++)
263+
// Graphics.CopyTexture(input, f, 0, target, f, 0);
264+
257265

258266
// Do the convolution on remaining mipmaps
259267
float invOmegaP = (6.0f * input.width * input.width) / (4.0f * Mathf.PI); // Solid angle associated to a pixel of the cubemap;
@@ -270,8 +278,7 @@ private void RenderCubemapGGXConvolution(Texture input, RenderTexture target, Re
270278
for (int face = 0; face < 6; ++face)
271279
{
272280
Utilities.SetRenderTarget(renderLoop, target, mip, (CubemapFace)face);
273-
Camera faceCamera = m_CubemapFaceCamera[face].GetComponent<Camera>();
274-
281+
275282
var cmd = new CommandBuffer { name = "" };
276283
cmd.DrawMesh(m_CubemapFaceMesh[face], Matrix4x4.identity, m_GGXConvolveMaterial, 0, 0, propertyBlock);
277284
renderLoop.ExecuteCommandBuffer(cmd);

0 commit comments

Comments
 (0)