dilevin / computer-graphics-shader-pipeline

Computer Graphics Assignment about the Shader Pipeline
2 stars 5 forks source link

bump.fs artifacts at boundaries #10

Closed buencons closed 5 years ago

buencons commented 5 years ago

Hi,

I am seeing some artifacts at boundaries when generating bumps on my sphere. bump

I only see this happen when I try to increase the frequency of my Perlin noise function. Has anyone else seen this issue?

Thanks.

buencons commented 5 years ago

Fixed this issue. My perlin noise function was incorrect. I assumed casting from float to int would automatically floor a number but I guess not. Here is how it looks now: nice