Golden Ratio Blue Noise Sampling
Improved fog sampling and stochastic transparency by generating low discrepancy temporal sequences using the golden ratio on blue noise samples
This commit is contained in:
parent
aef2bf29a5
commit
ec1f8f56d4
8 changed files with 41 additions and 25 deletions
|
|
@ -26,9 +26,10 @@ public class BlueNoiseProvider : MonoBehaviour
|
|||
{
|
||||
Shader.SetGlobalVector("_DitheringCoords", new Vector4(
|
||||
(float)_camera.scaledPixelWidth / (float)NoiseTexture.width,
|
||||
(float)_camera.scaledPixelWidth / (float)NoiseTexture.height,
|
||||
(float)_camera.scaledPixelHeight / (float)NoiseTexture.height,
|
||||
Random.value,
|
||||
Random.value
|
||||
));
|
||||
Shader.SetGlobalInt("_FrameNumber", Time.frameCount);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue