mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-23 12:45:29 +08:00
Update README.md
Update HDR progress img/ dir for images Replace html with picture formula 05 Light casters encoding -> UTF-8
This commit is contained in:
@@ -98,7 +98,7 @@ GLSL跟一般的编程语言一样,定义了一些常用的数据类型,基
|
||||
可以看到在顶点着色器生命了一个向量:*vertexColor* 有out修饰,同时在片段着色器声明了一个*vertexColor* 使用in来修饰,这样片段着色器就可以获取顶点着色器处理的*vertexColor*的结果了。
|
||||
根据上面shader,可以得出下图的效果:
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
**常量**
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 48 KiB |
Binary file not shown.
Before Width: | Height: | Size: 70 KiB |
Reference in New Issue
Block a user