Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 47ab14aa authored by Yein Jo's avatar Yein Jo
Browse files

Fix the grid artifacts in simplex noise

Skew grid artifacts were shown due to the recent GPU driver update that
may have changed some floating point computation. Making the hash
function integer based to mitigate floating point precision issue.

Skewed grid can be only shown if the hash function produces different
gradient vectors in the same simplex vertex. Since the hash function
produces "discontinuous" random values, a small difference in the input
could cause a huge difference in the output. This is why it's more
robust to use integer based hash.

Bug: 315533269
Flag: NA
Test: Visually inspect
Change-Id: I4bdc69a7dd8e6c3919a7c0594bebf37b83fd946a
parent 7ab7cc7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment