• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
lizhengjin
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
2009年8月11日
glsl,opengl关于镜面光的计算,包括镜面高光
摘要: GLSL TutorialOpenGL Directional Lights II Time for the specular component of the OpenGL directional light. The lighting model used is the Blinn-Phong model, which is a simplification of the Phong mode... 阅读全文
posted @ 2009-08-11 22:35 lizhengjin 阅读(1588) 评论(0) 推荐(1)
glsl 教程,定向光
摘要: GLSL TutorialOpenGL Directional Lights I The equations in here are from the chapter "The Mathematics of Lighting" from the book "OpenGL Programming Guide", aka the Red Book. //本教程来自opengl红宝书We'll star... 阅读全文
posted @ 2009-08-11 19:33 lizhengjin 阅读(745) 评论(0) 推荐(0)
2009年8月10日
glsl 法向量规格化的问题
摘要: GLSL TutorialNormalization Issues Vertex Shader The dot product is commonly used to compute the cosine of the angle between two vectors. As we know this will only hold if both vectors are normalized. ... 阅读全文
posted @ 2009-08-10 22:38 lizhengjin 阅读(877) 评论(0) 推荐(0)
glsl The gl_NormalMatrix 方向向量的转换
摘要: GLSL TutorialThe gl_NormalMatrix The gl_NormalMatrix is present in many vertex shaders. In here some light is shed on what is this matrix and what is it for. This section was inspired by the excellent... 阅读全文
posted @ 2009-08-10 21:56 lizhengjin 阅读(1243) 评论(0) 推荐(0)
2009年8月9日
glsl 顶点向量转换矩阵
摘要: The gl_NormalMatrix The gl_NormalMatrix is present in many vertex shaders. In here some light is shed on what is this matrix and what is it for. This section was inspired by the excellent book by Eric... 阅读全文
posted @ 2009-08-09 22:54 lizhengjin 阅读(670) 评论(0) 推荐(0)
glsl光照计算
摘要: The first version preseted in here computes an intensity per vertex. Then the fragment shader uses the vertex interpolated intensity to compute a tone for the fragment. The vertex shader must therefor... 阅读全文
posted @ 2009-08-09 20:54 lizhengjin 阅读(680) 评论(0) 推荐(0)
艳色着色器
摘要: Color Shader GLSL has access to part of the OpenGL state. In this tutorial we'll see how to access the color as set in an OpenGL application with glColor. GLSL has an attribute variable where it keeps... 阅读全文
posted @ 2009-08-09 18:39 lizhengjin 阅读(467) 评论(0) 推荐(0)
Hello World in GLSL glsl的第一个例子,Hello World
摘要: This is kind of a Hello World for GLSL. A minimal shader that performs the most basic tasks: transform the vertices and render the primitives in a single color. In here it this shaders, vertex and fra... 阅读全文
posted @ 2009-08-09 17:31 lizhengjin 阅读(775) 评论(0) 推荐(0)
收集的网址
摘要: http://3dshaders.com/ glsl的官方网址 阅读全文
posted @ 2009-08-09 15:59 lizhengjin 阅读(213) 评论(0) 推荐(0)
2009年8月2日
opengl中使用点精灵的代码
摘要: glDepthRange(0.0, 1.0); glClearDepth(1.0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClearColor(0.0, 0.0, 0.0, 1.0); AUX_RGBImageRec *textureImage[1]; textureImage[0] = auxDIBImageLoadA(T... 阅读全文
posted @ 2009-08-02 11:18 lizhengjin 阅读(745) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3