ソースを参照

Merge pull request #6343 from alcomposer/patch-1

Replace the hint_albedo hint with source_color in the shading reference
Yuri Sizov 2 年 前
コミット
c5f066b27e
1 ファイル変更1 行追加0 行削除
  1. 1 0
      tutorials/shaders/shader_reference/shading_language.rst

+ 1 - 0
tutorials/shaders/shader_reference/shading_language.rst

@@ -748,6 +748,7 @@ used, and how the editor should allow users to modify it.
     uniform vec4 color : source_color;
     uniform float amount : hint_range(0, 1);
     uniform vec4 other_color : source_color = vec4(1.0);
+    uniform sampler2D image : source_color;
 
 It's important to understand that textures that are supplied as color require
 hints for proper sRGB->linear conversion (i.e. ``source_color``), as Godot's 3D