소스 검색

Fix double scaling (#3934)

Beuc 5 년 전
부모
커밋
f54e18fef0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tutorials/shading/your_first_shader/your_first_spatial_shader.rst

+ 1 - 1
tutorials/shading/your_first_shader/your_first_spatial_shader.rst

@@ -332,7 +332,7 @@ most of the difficult stuff for you.
 
   void vertex() {
     vertex_position = VERTEX.xz / 2.0;
-    float height = texture(noise, vertex_position).x * height_scale;
+    float height = texture(noise, vertex_position).x;
     VERTEX.y += height * height_scale;
   }