- 博客(127)
- 资源 (40)
- 收藏
- 关注

原创 图形学网站
https://www.scratchapixel.comhttps://learnopengl.com/http://www.flipcode.com/archives/articles.shtmlhttps://github.com/McNopper/OpenGLhttps://stanford.edu/class/ee267/lectures/http://www.realtim...
2019-08-23 09:19:16
213
原创 gtx960 有多少wrap
Warp 是一个逻辑上的线程组,包含 32 个线程。Warp 是 GPU 硬件调度的最小单位,而不是由 CUDA 核心直接组成的。每个线程在执行时会映射到一个 CUDA 核心上,因此 一个 Warp 的 32 个线程需要 32 个 CUDA 核心来同时执行。
2025-03-16 07:28:18
317
原创 VkDrawIndexedIndirectCommand firstIndex 和 firstInstance 这两个参数区别区别
【代码】VkDrawIndexedIndirectCommand firstIndex 和 firstInstance 这两个参数区别区别。
2024-11-27 22:56:46
310
原创 sampler2DShadow
需要注意的是,不同版本的GLSL中语法可能略有不同,比如在较老的版本中使用shadow2D()函数,而新版本中使用texture()函数。在GLSL中,针对阴影贴图(Shadow Map)采样有专门的采样器类型。阴影采样器在采样时需要一个额外的比较值(comparison value)2。与普通的sampler2D不同,它会执行深度比较操作2。必须声明为uniform变量或作为函数参数3。返回值范围在[0,1]之间,表示阴影强度。用于立方体阴影贴图采样。适用于全方位的阴影映射。用于2D阴影贴图采样。
2024-11-24 13:02:11
290
原创 Curiously Recurring Template Pattern(CRTP)
Curiously Recurring Template Pattern(CRTP)是一种C++中的高级编程技巧,也被称为"奇异递归模板模式"。这种模式看起来有点反直觉,因为它涉及到一个类将自己作为模板参数传递给自己的基类。让我为您详细解释一下这个概念。
2024-10-13 12:22:25
243
原创 图形学技术博客
主流抗锯齿方案详解(一)MSAA hierarchical-z-map-based-occlusion-culling游戏架构设计:高性能并行编程GAMES001-图形学中的数学
2024-10-09 22:10:07
373
原创 Inheritance Is The Base Class of Evil
【代码】Inheritance Is The Base Class of Evil。
2023-05-30 23:12:29
100
原创 vulkan triangle
/** Vulkan Example - Basic indexed triangle rendering** Note:* This is a "pedal to the metal" example to show off how to get Vulkan up and displaying something* Contrary to the other examples, this one won't make use of helper functions or initia
2023-05-29 23:06:28
186
原创 gdal工具函数
参考void setProjection(const std::string& sourceFile){ GDALAllRegister(); CPLSetConfigOption("SHAPE_ENCODING", ""); //解决中文乱码问题 CPLSetConfigOption("GDAL_FILENAME_IS_UTF8", "NO"); //解决中文路径崩溃 char* srs_str; OGRSpatialReference ogrSrs; ogrSrs.S
2020-07-30 16:00:53
453
原创 osg create line
inline osg::Geometry* createLine(const std::vector<osg::Vec3>& allPTs, osg::Vec4 color, osg::PrimitiveSet::Mode model = osg::PrimitiveSet::LINE_STRIP, float nWidth = 2){ int nCount = all...
2020-03-11 09:54:44
252
原创 osg 顶点属性
osg::Geometry* createLine2(const std::vector<osg::Vec3d>& allPTs, const std::vector<osg::Vec3d>& colors, osg::Camera* camera){ cout << "osg::getGLVersionNumber" << os...
2020-02-19 21:15:35
758
原创 itemgetter
from operator import itemgettercutting_dim = 1points = [(6,8), (1,2), (0, 0), (10, -5)]points.sort(key=itemgetter(cutting_dim))print(points) #[(10, -5), (0, 0), (1, 2), (6, 8)]
2019-10-14 13:00:55
2392
原创 三角形内,均匀生成点
算法来自于PBRT CH13 std::default_random_engine eng(time(NULL)); std::uniform_real_distribution<> urd(0., 1.); std::vector<osg::Vec3d> PTs2; for (int i = 0; i < 10000; i++) { doub...
2019-09-29 10:34:23
759
原创 shader snippets
shdrprecision highp float;uniform float time;uniform vec2 resolution;varying vec3 fPosition;varying vec3 fNormal;Wardfloat Ward(vec3 lightDir, vec3 viewDir, vec3 normal, float exponent){ ...
2019-09-24 09:55:20
209
原创 三角形插值
// 计算权重 CalculateWeightBOOL CalcWeight(const osg::Vec3d& p0, const osg::Vec3d& p1, const osg::Vec3d& p2, const osg::Vec3d& k, double& a, double& b, double& c){ double Ar...
2019-09-16 12:50:38
1219
stl 相关的文章
2019-08-02
光线追踪与光子映射.zip
2019-08-02
The Graphics Pipeline and OpenGL II: Lighting and Shading, Fragment Processing
2019-08-02
C++ 最佳实践 cppbestpractices
2018-12-03
MadShaders_0.4.1_win64
2018-11-15
OpenGLInsights-SparseVoxelization
2018-11-15
vulkan pdf 教程 英文.zip
2020-07-30
9927405hpcv-water-29-oct-2010.zip
2020-03-02
global_illumination_using_photon_maps_egwr96.pdf
2019-09-12
MC Practice.zip sratchapixel
2019-08-07
raytracinginoneweekend.zip
2019-08-07
osgworks-master.zip
2019-08-07
osg3DViewer.zip
2019-08-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人