瀏覽代碼

Update standard_lighting.c

pull/787/head
Ray 6 年之前
父節點
當前提交
2217c04ecf
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      examples/others/standard_lighting.c

+ 1
- 1
examples/others/standard_lighting.c 查看文件

@ -113,7 +113,7 @@ int main()
material.maps[MAP_DIFFUSE].color = WHITE; material.maps[MAP_DIFFUSE].color = WHITE;
material.maps[MAP_SPECULAR].color = WHITE; material.maps[MAP_SPECULAR].color = WHITE;
model.material = material; // Apply material to model
model.materials[0] = material; // Apply material to model
Light spotLight = CreateLight(LIGHT_SPOT, (Vector3){3.0f, 5.0f, 2.0f}, (Color){255, 255, 255, 255}); Light spotLight = CreateLight(LIGHT_SPOT, (Vector3){3.0f, 5.0f, 2.0f}, (Color){255, 255, 255, 255});
spotLight->target = (Vector3){0.0f, 0.0f, 0.0f}; spotLight->target = (Vector3){0.0f, 0.0f, 0.0f};

Loading…
取消
儲存