Przeglądaj źródła

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 lat temu
committed by GitHub
rodzic
commit
2884b88101
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      examples/shaders/resources/shaders/glsl330/color_mix.fs

+ 2
- 2
examples/shaders/resources/shaders/glsl330/color_mix.fs Wyświetl plik

@ -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);
}

Ładowanie…
Anuluj
Zapisz