1 Star 0 Fork 0

毛三/tinygltf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
shader.vert 367 Bytes
一键复制 编辑 原始数据 按行查看 历史
Syoyo Fujita 提交于 9年前 . texture support.
attribute vec3 in_vertex;
attribute vec3 in_normal;
attribute vec2 in_texcoord;
varying vec3 normal;
varying vec2 texcoord;
void main(void)
{
vec4 p = gl_ModelViewProjectionMatrix * vec4(in_vertex, 1);
gl_Position = p;
vec4 nn = gl_ModelViewMatrixInverseTranspose * vec4(normalize(in_normal), 0);
normal = nn.xyz;
texcoord = in_texcoord;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/llmllm/tinygltf.git
git@gitee.com:llmllm/tinygltf.git
llmllm
tinygltf
tinygltf
master

搜索帮助