mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 20:29:03 +00:00
Merge pull request #6031 from Calinou/shading-language-hint-default-transparent
Add `hint_default_transparent` to Shading language
This commit is contained in:
@@ -752,29 +752,33 @@ engine renders in linear color space.
|
||||
|
||||
Full list of hints below:
|
||||
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| Type | Hint | Description |
|
||||
+======================+================================================+======================================================+
|
||||
| **vec3, vec4** | source_color | Used as color. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **int, float** | hint_range(min, max[, step]) | Restricted to values in a range (with min/max/step). |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | source_color | Used as albedo color. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | hint_normal | Used as normalmap. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | hint_default_white | As value or albedo color, default to white. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | hint_default_black | As value or albedo color, default to black. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | hint_anisotropy | As flowmap, default to right. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | hint_roughness[_r, _g, _b, _a, _normal, _gray] | |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | filter[_nearest, _linear][_mipmap][_aniso] | Enabled specified texture filtering. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
| **sampler2D** | repeat[_enable, _disable] | Enabled texture repeating. |
|
||||
+----------------------+------------------------------------------------+------------------------------------------------------+
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| Type | Hint | Description |
|
||||
+======================+================================================+=============================================================================+
|
||||
| **vec3, vec4** | source_color | Used as color. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **int, float** | hint_range(min, max[, step]) | Restricted to values in a range (with min/max/step). |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | source_color | Used as albedo color. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | hint_normal | Used as normalmap. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | hint_default_white | As value or albedo color, default to opaque white. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | hint_default_black | As value or albedo color, default to opaque black. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | hint_default_transparent | As value or albedo color, default to transparent black. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | hint_anisotropy | As flowmap, default to right. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | hint_roughness[_r, _g, _b, _a, _normal, _gray] | Used for roughness limiter on import (attempts reducing specular aliasing). |
|
||||
| | | ``_normal`` is a normal map that guides the roughness limiter, |
|
||||
| | | with roughness increasing in areas that have high-frequency detail. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | filter[_nearest, _linear][_mipmap][_aniso] | Enabled specified texture filtering. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
| **sampler2D** | repeat[_enable, _disable] | Enabled texture repeating. |
|
||||
+----------------------+------------------------------------------------+-----------------------------------------------------------------------------+
|
||||
|
||||
GDScript uses different variable types than GLSL does, so when passing variables
|
||||
from GDScript to shaders, Godot converts the type automatically. Below is a
|
||||
|
||||
Reference in New Issue
Block a user