浏览代码

Update shaders_mesh_instancing.c

Due to this missing line of code the example seems is not going to work:
shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");
pull/4723/head
MikiZX1 3 个月前
committed by GitHub
父节点
当前提交
db25830a67
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      examples/shaders/shaders_mesh_instancing.c

+ 1
- 0
examples/shaders/shaders_mesh_instancing.c 查看文件

@ -73,6 +73,7 @@ int main(void)
Shader shader = LoadShader(TextFormat("resources/shaders/glsl%i/lighting_instancing.vs", GLSL_VERSION),
TextFormat("resources/shaders/glsl%i/lighting.fs", GLSL_VERSION));
// Get shader locations
shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");
shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp");
shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos");

正在加载...
取消
保存