阅读背景:

在C或c++中有一个函数可以对一个整数进行“饱和”操作吗

来源:互联网 

I am doing some 3D graphics and I have an open ocean. For this ocean, I have a matrix representing the sea state (i.e. wave heights) for a particular rectangular subsection of the sea. The rest of the ocean is flat. My problem is that my controlled sea, where there are waves, is positioned in the middle of open flat sea, and the discontinuity at the edges of my grid causes some bad artifacts. The reason I am only generating waves for a subsection and not the entire sea is because my noise function is prohibitively expensive to compute on the entire sea (and I know the easiest solution is to use a cheaper noise function like simplex noise, but that's not an option).I am doing some 3D graphics and I have an open




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: