Преглед на файлове

Fix unexisting `texture` function in GLSL

DricomDragon преди 4 години
родител
ревизия
5deb84f347
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      caban/Shaders/texture.frag

+ 1 - 1
caban/Shaders/texture.frag

@@ -24,5 +24,5 @@ void main()
 {
     // Couleur du pixel
 
-    out_Color = texture(texture, coordTexture);
+    out_Color = texture2D(texture, coordTexture);
 }