324512e11c
Style: Replace header guards with #pragma once
2025-03-07 17:33:47 -06:00
6c6e74408c
Merge pull request #94616 from Chaosus/vs_fix_vec4_constant
...
Change `VisualShaderNodeVec4Constant` type to vec4
2025-01-03 02:01:09 +01:00
73d85f46c9
Remove unused headers in scene.
...
Co-authored-by: Thaddeus Crews <repiteo@outlook.com >
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-12-24 00:40:09 +08:00
2191df0cea
VisualShader: Add LinearToSRGB and SRGBToLinear to ColorFunc node
2024-10-19 12:18:34 -07:00
eb5a9c3b33
Visual Shader: Add vector operations to Remap node
2024-09-22 11:25:36 -07:00
db251a3f99
Allow setting a cubemap as default parameter to shader
2024-08-27 09:43:05 +03:00
df61dca5ba
Change VisualShaderNodeVec4Constant type to vec4
2024-08-15 10:49:34 +03:00
1052985b00
Add hint_enum for uniform int in gdshader
2024-07-13 14:30:08 -04:00
f1ac3e26cc
Merge pull request #83729 from Chaosus/vs_fix_texture_param
...
Add extra warning messages to `VisualShaderNodeTextureParameter`
2024-06-12 10:00:23 +02:00
62776842df
[VisualShader] Add reroute node and improve port drawing
2024-05-13 03:26:01 +02:00
e5d2b6d50f
Fix some missing categories in visual shader nodes
2024-03-05 19:39:23 +01:00
02a33b67a8
Redesign the graph editor for visual shaders
2024-02-22 20:40:09 +01:00
3b353075dc
Add extra warning messages to VisualShaderNodeTextureParameter
2023-10-21 16:48:38 +03:00
f248420a2b
made visual shader ports expandable by default if there is only one output port and it's of any vector type
...
Co-authored-by: QbieShay <cislaghi.ilaria@gmail.com >
2023-09-22 15:28:59 +02:00
65b0989f68
Additional Visual Shader Nodes
...
* RotationByAxis Visual Shader Node added
* WorldPositionFromDepth Visual Shader Node added
* ScreenNormalWorldSpace Visual Shader Node added
2023-07-26 00:39:12 +02:00
01101134f4
Make the dragging connections more user-friendly in visual shaders
2023-07-20 15:00:19 +03:00
7e21eb7e00
Extract and reorganize texture resource classes
2023-07-14 20:04:21 +02:00
8c8c333bf2
Add derivative functions with precision to shaders
2023-01-26 20:53:46 +03:00
f9b5e9da37
Fix code generation for ProximityRange node in visual shader
2023-01-20 22:31:37 +03:00
faea9f5c10
Remove SCREEN_TEXTURE, DEPTH_TEXTURE, and NORMAL_ROUGHNESS_TEXTURE
...
in favour of texture hints
2023-01-18 19:52:47 -08:00
f101add78b
Add uint type support to visual shaders
2023-01-06 10:35:25 +03:00
d95794ec8a
One Copyright Update to rule them all
...
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.
It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).
We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).
Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-05 13:25:55 +01:00
3401228fbd
Fix code generation for VisualShaderNodeTextureParameterTriplanar
2022-09-07 07:02:07 +03:00
e3ee2a0a6e
Disable Output port preview of Linear Depth Visual Shader node
...
This disables the output port preview of the node because it's enabled preview caused a shader compilation error
2022-09-03 22:36:37 +02:00
8191b3c110
Rename uniform to parameter across the engine
2022-09-01 11:42:57 +03:00
55bbcc54e7
Implement custom non-trivial shader functions
2022-08-27 22:59:12 +02:00
f754dd20be
Merge pull request #62454 from Geometror/reflect-refract-vec2-vec4
...
Allow for vec2/vec4 to be used in reflect and refract
2022-08-07 19:16:05 +02:00
b8d5f4bdd5
Allow vec2 and vec4 for reflect and refract
2022-08-07 18:03:16 +02:00
813f6a5d57
Add hint_transparent to use a transparent black placeholder texture
...
This can be used in shaders to avoid the need to supply a transparent
placeholder texture manually.
2022-08-01 23:38:06 +02:00
14df02b21f
Fix typo "Frac" instead of "Fract"
2022-06-05 19:20:32 -06:00
746dddc067
Replace most uses of Map by HashMap
...
* Map is unnecessary and inefficient in almost every case.
* Replaced by the new HashMap.
* Renamed Map to RBMap and Set to RBSet for cases that still make sense
(order matters) but use is discouraged.
There were very few cases where replacing by HashMap was undesired because
keeping the key order was intended.
I tried to keep those (as RBMap) as much as possible, but might have missed
some. Review appreciated!
2022-05-16 10:37:48 +02:00
033e211724
Merge pull request #60845 from Chaosus/vs_color_func
2022-05-09 21:34:34 +03:00
ee1b7a033d
Push HSV2RGB/RGB2HSV to ColorFunc (from VecFunc) in visual shaders
2022-05-07 09:49:12 +03:00
edd3b1274e
Change output port of VisualShaderNodeColorUniform to vec4
2022-05-07 08:40:19 +03:00
8bf632240d
Continue to improve vector4 type in visual shaders
2022-04-22 22:29:26 +03:00
cf58d23a72
Add Vector4 to VisualShader
2022-04-12 19:09:29 +02:00
a6e280c5de
Add some more fixes to visual shader
2022-02-07 11:28:42 +03:00
59af063636
Add support for 2D vector type to visual shaders
2022-02-02 19:59:34 +03:00
88b2afa28f
[VisualShader] Merge scalar and vector derivative functions into one
2022-01-28 22:19:10 +03:00
538cff1351
Fix default input port hints for some modes in visual shader
2022-01-22 11:12:56 +03:00
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
1eb40904ce
Add texture filtering properties to VisualShaderNodeTextureUniform
2021-12-16 11:50:33 +03:00
92e9cca5be
Rename hint_aniso to hint_anisotropy in the shader language
...
The word "anisotropy" is used in full form in BaseMaterial3D's
anisotropy-related properties.
2021-12-10 17:41:17 +01:00
b12fea5b52
Add bitwise operators to VisualShaderNodeIntOp
2021-12-03 12:48:35 +03:00
e537a1f10e
Added missed limiters for Visual Shader node enums
2021-08-15 19:10:51 +03:00
9cf158019d
Changed TransformMult node to TransformOp in visual shaders
2021-08-11 22:05:04 +03:00
536825d004
Rename Curve3Texture to CurveXYZTexture
...
Neither name is a perfect match but `Curve3Texture` looked too similar to
`CurveTexture` and `Curve3D`, which made things confusing when picking a
texture type or browsing the API reference.
2021-07-14 00:30:58 +02:00
4cf2f79892
Added Curve3Texture to Visual Shaders
2021-07-04 12:21:19 +03:00
b2d2822a39
Adds UVFunc for panning/scaling on UV's to VisualShader's.
2021-06-07 08:31:48 +03:00
de3f6699a5
Rename Transform to Transform3D in core
2021-06-03 07:30:01 -04:00