
#OpenGL 4.0 Shading
文章平均质量分 83
OpenGL 4.0 Shading Language Cookbook读书笔记
妙为
一念归零
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c5060:out can‘t be used with used with non-varying visibility
GLSL language integration插件报错,c5060:out can't be used with used with non-varying visibility原创 2024-01-15 19:55:23 · 1037 阅读 · 0 评论 -
Windows下配置glslangValidator实现命令行检查glsl语法
window下配置glslang原创 2022-02-11 10:59:19 · 3262 阅读 · 0 评论 -
shader三种变量类型(uniform,attribute和varying)
学习目标:uniform变量在vertex和fragment两者之间声明方式完全一样,则它可以在vertex和fragment共享使用。(相当于一个被vertex和fragment shader共享的全局变量)uniform变量一般用来表示:变换矩阵,材质,光照参数和颜色等信息。以下是例子:uniform mat4 viewProjMatrix; //投影+视图矩阵uniform mat4 viewMatrix; //视图矩阵uniform vec3 lightPosition; //光源位置原创 2021-08-05 18:02:16 · 2142 阅读 · 0 评论 -
GLSL #define GL_SPIRV 100说明
GLSL #define GL_SPIRV 100说明版权hankernhttps://blog.csdn.net/hankern/article/details/90690297Standard, Portable Intermediate Representation - V(SPIR-V)OpenGL 4.6的最大变化就是 支持SPIR-V,一种用于GPU通用计算和图形学的中间语言,Khronos开发设...原创 2021-01-08 11:52:08 · 937 阅读 · 0 评论 -
glTexImage2D 函数详解
glTexImage2D 函数详解参考https://blog.csdn.net/jeffasd/article/details/78135588原创 2021-01-07 15:43:12 · 4857 阅读 · 2 评论 -
OpenGL Tessellation control Shader(细分曲面控制着色器)
OpenGL Tessellation control Shader(细分曲面控制着色器)OpenGL Tessellation阶段:1,TCS: Tessellation Control Shader,细分控制材质2,PG:Primitive Generator,图元生成器3,TES:Tessellation Evalution Shader,细分执行材质4,CP:Control Points,The TCS wo...原创 2020-12-30 15:04:43 · 2177 阅读 · 0 评论 -
openGL API glDebugMessageControl详解
openGL API glDebugMessageControl详解NameglDebugMessageControl — control the reporting of debug messages in a debug contextC SpecificationvoidglDebugMessageControl( GLenumsource, GLenumtype, GLenumseverity, G...原创 2020-12-10 19:05:03 · 1088 阅读 · 1 评论 -
openGL API glDeleteSamplers中文翻译
openGL API glDeleteSamplers中文翻译先放上英文,后面是中文翻译NameglDeleteSamplers — delete named sampler objectsC SpecificationvoidglDeleteSamplers( GLsizein, const GLuint *samplers); ParametersnSpecifies the number of sampler o...原创 2020-12-10 11:51:12 · 241 阅读 · 0 评论 -
openGL API glGenSamplers 详解
暂时先放openGL官方文档的解释,后面我会加入中文翻译NameglGenSamplers — generate sampler object namesC SpecificationvoidglGenSamplers( GLsizein, GLuint *samplers); ParametersnSpecifies the number of sampler object names to generate.samplersSpecifi...原创 2020-12-10 11:45:04 · 719 阅读 · 0 评论 -
opengl API glCheckFramebufferStatus详解
NameglCheckFramebufferStatus, glCheckNamedFramebufferStatus — check the completeness status of a framebufferC SpecificationGLenumglCheckFramebufferStatus( GLenumtarget); GLenumglCheckNamedFramebufferStatus( GLuintframebuffer, GL...原创 2020-12-09 15:40:31 · 1390 阅读 · 0 评论 -
opengl API glFramebufferTexture2D详解
中文解释:名称glFramebufferTexture2D - 将纹理图像附加到帧缓冲对象C规范void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget,原创 2020-12-09 15:12:08 · 1006 阅读 · 0 评论 -
openGL API glFramebufferTexture2D详解
openGL API glFramebufferTexture2D详解glFramebufferTexture2D — attach a texture image to a framebuffer objectC Specificationvoid glFramebufferTexture2D( GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level);ParameterstargetSpe原创 2020-12-04 15:46:01 · 1402 阅读 · 0 评论 -
glGetUniformLocation详解
glGetUniformLocation详解openGL4.5API之glGetUniformLocation官方版说明NameglGetUniformLocation — Returns the location of a uniform variableC SpecificationGLint glGetUniformLocation( GLuint program,const GLchar *name);ParametersprogramSpecifies the program o原创 2020-11-27 18:02:04 · 6143 阅读 · 1 评论 -
ModelMatrix、ModelViewMatrix、ProjectionMatrix、NormalMatrix模型矩阵、模型视图矩阵、投影矩阵、正规矩阵详解
ModelMatrix、ModelViewMatrix、ProjectionMatrix、ModelMatrix模型矩阵、模型视图矩阵、投影矩阵、正规矩阵详解1. 前言在openGL经常用到ModelMatrix、ModelViewMatrix、ProjectionMatrix、ModelMatrix(模型矩阵、模型视图矩阵、投影矩阵、正规矩阵)这几个矩阵,举个栗子:效果:上面是一段顶点着色器的代码实现了:平行光光照效果,就用到了ModelMatrix、ModelViewMatrix、Proje原创 2020-11-22 17:13:38 · 7046 阅读 · 0 评论 -
OpenGL_4.0_Shading_Language_Cookbook 读书笔记(1)
OpenGL_4.0_Shading_Language_Cookbook 读书笔记(1)前言: 在2019年12月份到新的公司,公司做飞机飞行态势感知系统,需要用的OpenGL的知识,发现自己对OpenGL知识太欠缺了,虽然之前断断续续自学了《3D数学基础:图形与游戏开发第一二中英文版》、《OpenGL SuperBible》、《LearnOpenGL》和《OpenGL Programming Guide》,感觉自己无法实现飞机的渲染特效,比方说在已有的3D模型中加入纹理、光照、...原创 2020-09-09 10:44:21 · 767 阅读 · 0 评论