Caofulei

路在脚下,心向远方

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

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

Mosaic changing by time

20231206-Shader-Mosaic-马赛克

Mosaic By Time 随着时间更新马赛克的大小 ShaderToy https://www.shadertoy.com/view/DlKBRh Code: /* https://www.shadertoy.com/view/DlKBRh Blog:https://blog.lovezjj.cn by cfl997 20231206 */ // 定义一个变量 Square,