소스 검색

Update `fragment()` -> `sky()` function name in Sky shaders (#5719)

Patrick (FlameLizard21) 3 년 전
부모
커밋
e3964988cc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tutorials/shaders/shader_reference/sky_shader.rst

+ 2 - 2
tutorials/shaders/shader_reference/sky_shader.rst

@@ -28,7 +28,7 @@ example:
 
 
     shader_type sky;
     shader_type sky;
 
 
-    void fragment() {
+    void sky() {
         if (AT_CUBEMAP_PASS) {
         if (AT_CUBEMAP_PASS) {
             // Sets the radiance cubemap to a nice shade of blue instead of doing
             // Sets the radiance cubemap to a nice shade of blue instead of doing
             // expensive sky calculations
             // expensive sky calculations
@@ -76,7 +76,7 @@ a lower resolution than the rest of the sky:
     shader_type sky;
     shader_type sky;
     render_mode use_half_res_pass;
     render_mode use_half_res_pass;
 
 
-    void fragment() {
+    void sky() {
         if (AT_HALF_RES_PASS) {
         if (AT_HALF_RES_PASS) {
             // Run cloud calculation for 1/4 of the pixels
             // Run cloud calculation for 1/4 of the pixels
             vec4 color = generate_clouds(EYEDIR);
             vec4 color = generate_clouds(EYEDIR);