Sfoglia il codice sorgente

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 anno fa
parent
commit
e88a7e069f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 {