This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
PostProcessing/Runtime/Effects Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
17
17
### Changed
18
18
- Warning for mobiles about using post-processing with non-fullscreen cameras.
19
19
- Directly to Camera Target on the PostProcessLayer component is now disabled by default.
20
+ - The framework now uses its own random number generator instead of the default Unity one.
20
21
21
22
## [ 2.1.6] - 2019-04-11
22
23
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ namespace UnityEngine.Rendering.PostProcessing
10
10
internal sealed class Dithering
11
11
{
12
12
int m_NoiseTextureIndex = 0 ;
13
+ System . Random m_Random = new System . Random ( 1234 ) ;
13
14
14
15
internal void Render ( PostProcessRenderContext context )
15
16
{
@@ -24,8 +25,8 @@ internal void Render(PostProcessRenderContext context)
24
25
if ( ++ m_NoiseTextureIndex >= blueNoise . Length )
25
26
m_NoiseTextureIndex = 0 ;
26
27
27
- float rndOffsetX = Random . value ;
28
- float rndOffsetY = Random . value ;
28
+ float rndOffsetX = ( float ) m_Random . NextDouble ( ) ;
29
+ float rndOffsetY = ( float ) m_Random . NextDouble ( ) ;
29
30
#endif
30
31
31
32
var noiseTex = blueNoise [ m_NoiseTextureIndex ] ;
You can’t perform that action at this time.
0 commit comments