浏览代码

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