소스 검색

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
 {