瀏覽代碼

Small shader fix on vec3 initialization #1298

pull/1330/head
raysan5 4 年之前
父節點
當前提交
488c60d139
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      examples/models/resources/shaders/glsl330/skybox.fs

+ 1
- 1
examples/models/resources/shaders/glsl330/skybox.fs 查看文件

@ -23,7 +23,7 @@ out vec4 finalColor;
void main()
{
// Fetch color from texture map
vec3 color = nf">{ 0.0 };
vec3 color = err">vec3(0.0);
if (vflipped) color = texture(environmentMap, vec3(fragPosition.x, -fragPosition.y, fragPosition.z)).rgb;
else color = texture(environmentMap, fragPosition).rgb;

Loading…
取消
儲存