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

Shader.md sampler correction (#472)

- small fix to code sample in Shader.md

- uniform sampler should be sampler2D keyword. Otherwise code sample may confuse some users copying the example.
Agustin преди 1 година
родител
ревизия
e88a7e069f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      docs/en/manuals/shader.md

+ 1 - 1
docs/en/manuals/shader.md

@@ -246,7 +246,7 @@ in vec2 var_texcoord0;
 
 out vec4 color_out;
 
-uniform sampler texture_sampler;
+uniform sampler2D texture_sampler;
 
 uniform fs_uniforms
 {