@@ -149,7 +149,7 @@ public void Allocate()
149
149
static int s_GenListPerTileKernel ;
150
150
static int s_GenListPerVoxelKernel ;
151
151
static int s_ClearVoxelAtomicKernel ;
152
- static ComputeBuffer s_LigthVolumeDataBuffer = null ;
152
+ static ComputeBuffer s_LightVolumeDataBuffer = null ;
153
153
static ComputeBuffer s_ConvexBoundsBuffer = null ;
154
154
static ComputeBuffer s_AABBBoundsBuffer = null ;
155
155
static ComputeBuffer s_LightList = null ;
@@ -235,11 +235,11 @@ public override void Rebuild(TextureSettings textureSettings)
235
235
s_GenListPerTileKernel = buildPerTileLightListShader . FindKernel ( enableBigTilePrepass ? "TileLightListGen_SrcBigTile" : "TileLightListGen" ) ;
236
236
s_AABBBoundsBuffer = new ComputeBuffer ( 2 * k_MaxLightsOnSCreen , 3 * sizeof ( float ) ) ;
237
237
s_ConvexBoundsBuffer = new ComputeBuffer ( k_MaxLightsOnSCreen , System . Runtime . InteropServices . Marshal . SizeOf ( typeof ( SFiniteLightBound ) ) ) ;
238
- s_LigthVolumeDataBuffer = new ComputeBuffer ( k_MaxLightsOnSCreen , System . Runtime . InteropServices . Marshal . SizeOf ( typeof ( LightVolumeData ) ) ) ;
238
+ s_LightVolumeDataBuffer = new ComputeBuffer ( k_MaxLightsOnSCreen , System . Runtime . InteropServices . Marshal . SizeOf ( typeof ( LightVolumeData ) ) ) ;
239
239
240
240
buildScreenAABBShader . SetBuffer ( s_GenAABBKernel , "g_data" , s_ConvexBoundsBuffer ) ;
241
241
buildPerTileLightListShader . SetBuffer ( s_GenListPerTileKernel , "g_vBoundsBuffer" , s_AABBBoundsBuffer ) ;
242
- buildPerTileLightListShader . SetBuffer ( s_GenListPerTileKernel , "_LigthVolumeData " , s_LigthVolumeDataBuffer ) ;
242
+ buildPerTileLightListShader . SetBuffer ( s_GenListPerTileKernel , "_LightVolumeData " , s_LightVolumeDataBuffer ) ;
243
243
buildPerTileLightListShader . SetBuffer ( s_GenListPerTileKernel , "g_data" , s_ConvexBoundsBuffer ) ;
244
244
245
245
if ( enableClustered )
@@ -248,7 +248,7 @@ public override void Rebuild(TextureSettings textureSettings)
248
248
s_GenListPerVoxelKernel = buildPerVoxelLightListShader . FindKernel ( kernelName ) ;
249
249
s_ClearVoxelAtomicKernel = buildPerVoxelLightListShader . FindKernel ( "ClearAtomic" ) ;
250
250
buildPerVoxelLightListShader . SetBuffer ( s_GenListPerVoxelKernel , "g_vBoundsBuffer" , s_AABBBoundsBuffer ) ;
251
- buildPerVoxelLightListShader . SetBuffer ( s_GenListPerVoxelKernel , "_LigthVolumeData " , s_LigthVolumeDataBuffer ) ;
251
+ buildPerVoxelLightListShader . SetBuffer ( s_GenListPerVoxelKernel , "_LightVolumeData " , s_LightVolumeDataBuffer ) ;
252
252
buildPerVoxelLightListShader . SetBuffer ( s_GenListPerVoxelKernel , "g_data" , s_ConvexBoundsBuffer ) ;
253
253
254
254
s_GlobalLightListAtomic = new ComputeBuffer ( 1 , sizeof ( uint ) ) ;
@@ -258,7 +258,7 @@ public override void Rebuild(TextureSettings textureSettings)
258
258
{
259
259
s_GenListPerBigTileKernel = buildPerBigTileLightListShader . FindKernel ( "BigTileLightListGen" ) ;
260
260
buildPerBigTileLightListShader . SetBuffer ( s_GenListPerBigTileKernel , "g_vBoundsBuffer" , s_AABBBoundsBuffer ) ;
261
- buildPerBigTileLightListShader . SetBuffer ( s_GenListPerBigTileKernel , "_LigthVolumeData " , s_LigthVolumeDataBuffer ) ;
261
+ buildPerBigTileLightListShader . SetBuffer ( s_GenListPerBigTileKernel , "_LightVolumeData " , s_LightVolumeDataBuffer ) ;
262
262
buildPerBigTileLightListShader . SetBuffer ( s_GenListPerBigTileKernel , "g_data" , s_ConvexBoundsBuffer ) ;
263
263
}
264
264
@@ -315,7 +315,7 @@ public override void Cleanup()
315
315
316
316
Utilities . SafeRelease ( s_AABBBoundsBuffer ) ;
317
317
Utilities . SafeRelease ( s_ConvexBoundsBuffer ) ;
318
- Utilities . SafeRelease ( s_LigthVolumeDataBuffer ) ;
318
+ Utilities . SafeRelease ( s_LightVolumeDataBuffer ) ;
319
319
320
320
// enableClustered
321
321
Utilities . SafeRelease ( s_GlobalLightListAtomic ) ;
@@ -1140,7 +1140,7 @@ public override void PushGlobalParams(Camera camera, RenderLoop loop)
1140
1140
1141
1141
// These two buffers have been set in Rebuild()
1142
1142
s_ConvexBoundsBuffer . SetData ( m_lightList . bounds . ToArray ( ) ) ;
1143
- s_LigthVolumeDataBuffer . SetData ( m_lightList . lightVolumes . ToArray ( ) ) ;
1143
+ s_LightVolumeDataBuffer . SetData ( m_lightList . lightVolumes . ToArray ( ) ) ;
1144
1144
1145
1145
Shader . SetGlobalBuffer ( "_DirectionalLightDatas" , s_DirectionalLightDatas ) ;
1146
1146
Shader . SetGlobalInt ( "_DirectionalLightCount" , m_lightList . directionalLights . Count ) ;
@@ -1259,7 +1259,7 @@ public override void RenderDeferredLighting(Camera camera, RenderLoop renderLoop
1259
1259
cmd.SetComputeTextureParam(deferredComputeShader, kernel, "_LightTextureB0", m_LightAttentuationTexture);
1260
1260
1261
1261
cmd.SetComputeBufferParam(deferredComputeShader, kernel, "g_vLightListGlobal", bUseClusteredForDeferred ? s_PerVoxelLightLists : s_LightList);
1262
- cmd.SetComputeBufferParam(deferredComputeShader, kernel, "_LigthVolumeData ", s_LigthVolumeDataBuffer );
1262
+ cmd.SetComputeBufferParam(deferredComputeShader, kernel, "_LightVolumeData ", s_LightVolumeDataBuffer );
1263
1263
cmd.SetComputeBufferParam(deferredComputeShader, kernel, "g_dirLightData", s_DirLightList);
1264
1264
1265
1265
var defdecode = ReflectionProbe.GetDefaultTextureHDRDecodeValues();
@@ -1382,4 +1382,4 @@ public override void RenderForward(Camera camera, RenderLoop renderLoop, bool re
1382
1382
}
1383
1383
}
1384
1384
}
1385
- }
1385
+ }
0 commit comments