Ver código fonte

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 ano atrás
pai
commit
e88a7e069f
1 arquivos alterados com 1 adições e 1 exclusões
  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
 {