Caofulei

路在脚下,心向远方

glm::vec3 Memory Alignment

2024-01-21 glm::vec3 放入结构体中的对其问题

介绍 在OpenGL编程中,与顶点数据的交互是非常常见的操作。在C++中,通常会使用GLM库提供的数据结构,如glm::vec3,来表示顶点数

NVIDIA OpenGL FramBuffer Bug-glCreateFramebuffers

20231219-NVIDIA OpenGL FramBuffer Bug-glCreateFramebuffers

NVIDIA 的OpenGL FramBuffer Bug-glCreateFramebuffers ​ 在做OpenGL开发的时候,遇到了NVIDIA写的bug。 并进行了解决,在NVIDIA官网上进行了反馈。 Framebuffer incomplete when attaching color buffers of

文档属性

20231213-hugo-md文档属性

#文档属性 layout:指定了文档的布局。 title:指定了文档的标题。 subtitle:指定了文档的副标题。 date:指定了文档的日期。 a

Welcome to CaoFulei Blog

Hello World, Hello Blog

“Yeah It’s on. ” Hello World!

Calculation method of gray value

20231207-Shader-Calculation method of gray value-灰度

Calculation method of gray value 三种不同计算灰度的方式 ShaderToy https://www.shadertoy.com/view/mlVBRh Code: /* https://www.shadertoy.com/view/mlVBRh Blog:https://blog.lovezjj.cn by cfl997 20231207 */ //Green vec3 GrayByGreen(vec3 color) { return vec3(color.g); } //Gray = R*0.3 + G*0.59