瀏覽代碼

out is a keyword in shaders and can't be used as a variable name. (#1558)

Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
pull/1560/head
Jeffery Myers 4 年之前
committed by GitHub
父節點
當前提交
2884b88101
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      examples/shaders/resources/shaders/glsl330/color_mix.fs

+ 2
- 2
examples/shaders/resources/shaders/glsl330/color_mix.fs 查看文件

@ -19,7 +19,7 @@ void main()
vec4 texelColor1 = texture(texture1, fragTexCoord);
float x = fract(fragTexCoord.s);
float out = smoothstep(0.4, 0.6, x);
float outVal = smoothstep(0.4, 0.6, x);
finalColor = mix(texelColor0, texelColor1, out);
finalColor = mix(texelColor0, texelColor1, outVal);
}

Loading…
取消
儲存