فهرست منبع

hint_albedo is depreciated

`hint_albedo` is no longer used, it is `source_color` to convert the source colorspace to linear.
Add example of `source_color` for sampler2D
alcomposer 2 سال پیش
والد
کامیت
66c6e38f46
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      tutorials/shaders/shader_reference/shading_language.rst

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

@@ -748,9 +748,10 @@ 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. ``hint_albedo``), as Godot's 3D
+hints for proper sRGB->linear conversion (i.e. ``source_color``), as Godot's 3D
 engine renders in linear color space.
 
 Full list of hints below: