- 博客(1)
- 资源 (10)
- 收藏
- 关注
原创 FFT水面加入Choppy Waves
以前的水面都比较圆润,今天尝试加入了浪尖。仍然用OpenGL和Cg,通过片元着色器计算FFT。choppy waves的生成其实和高度图的生成很相似,以前无浪尖,只生成高度,相当于只偏移了网格点Y坐标,而加入浪尖相当于X和Z坐标也要偏移一下。这样displacementMap可以设计成:R通道存X坐标偏移值DX,G通道存Y坐标偏移值DY,B通道存Z坐标偏移值DZ。法线的生成用有限差分就足够了。
2012-12-20 20:25:15 1121 3
Expert C++: Become a proficient programmer by learning coding best practices
Design and architect real-world scalable C++ applications by exploring advanced techniques in low-level programming, object-oriented programming (OOP), the Standard Template Library (STL), metaprogramming, and concurrency
2020-08-02
C++17 The Complete Guide.pdf
C++17 - The Complete Guide
by Nicolai M. Josuttis
Giving guidance on how to use Language and Library Features of C++17
For programmers, who want to switch to the latest version of Modern C++
2020-07-27
简单的C++线程池
使用POSIX线程实现C++线程池
So a thread pool basically consists of the three primary actors:
1. A number of threads either waiting for or executing tasks.
2. A number of service requests to the server from clients. Each request is considered a task to the threads.
3. A queue holding the incoming service requests.
2014-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人