popojan / goban

3D igo/baduk/weiqi/go game board and GUI for GnuGo and other GTP engines ray traced by GLSL shader
https://hraj.si/goban
GNU General Public License v3.0
47 stars 3 forks source link

Random noise generator in the shader not working on a brand new laptop #35

Closed popojan closed 2 years ago

popojan commented 3 years ago

Intel UHD 620 integrated graphics. The shader is working but results in flat textures, completely regular wood pattern.

Observed on Windows 10, works on the same graphics in Linux.

Consider replacing float rand(vec3 v) { return floatConstruct(hash(floatBitsToUint(v))); } with a different function, see ashima/webgl-noise.

Screenshot for reference: noise-not-working Notice flat solid carpet, regular wood texture and darker white stones.