瀏覽代碼

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
 {