Max Hilbrunner
583934f703
Merge pull request #11492 from Calinou/shading-language-data-types-array-struct
...
Clarify array and struct uniforms being supported in Shading language
2025-12-19 11:43:12 +01:00
unknown
8db87be8b9
fixed face orientation, by changing the vertex ordering to counter-clockwise
2025-12-02 19:02:11 +01:00
Hugo Locurcio
63cce64769
Clarify array and struct uniforms being supported in Shading language
2025-11-24 20:52:08 +01:00
Hugo Locurcio
a34efc8dcc
Document COLOR built-in limitations in Spatial shader
2025-11-17 23:47:55 +01:00
TelePete
f2023307bc
Fix error in shader_functions abbr popup
...
When hovering over vec_uint_type the popup claims that it can accept a float instead of a uint. This pr fixes this error. The top of the page states correctly that it accepts a uint, uvec2, uvec3, or uvec4.
2025-11-10 20:13:38 +01:00
Hugo Locurcio
aff19fe068
Document textureSize() should be avoided in Built-in functions
...
For performance reasons, it's best to pass the texture size
as a uniform instead.
2025-11-05 00:43:15 +01:00
Hugo Locurcio
9377e35451
Document Depth Test and Stencil features in Standard Material 3D and Spatial shader
...
Co-authored-by: Qbieshay <cislaghi.ilaria@gmail.com >
2025-10-16 16:51:07 +02:00
Max Hilbrunner
f6b40a054e
Merge pull request #11352 from Calinou/remove-old-version-references
...
Remove old Godot version references to simplify documentation
2025-10-11 12:45:38 +02:00
Nelson Sexton
f9730cf63f
Merge pull request #11262 from SDGNelson/patch-1
...
Add Z_CLIP_SCALE to Spatial Shaders reference vertex built-ins
2025-10-09 13:45:16 +02:00
JellyBoonz
12baca60f0
Edit per-instance texture array workaround ( #11350 )
...
* Edit per-instance texture array workaround
---------
Co-authored-by: Jaiden Ortiz <jaidenortiz@Jaidens-MacBook-Pro-2.local >
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro >
2025-10-09 13:20:52 +02:00
A Thousand Ships
2c9ada62c4
Shader reference proofreading
2025-10-08 12:56:12 +02:00
Hugo Locurcio
b3cbe5f777
Remove old Godot version references to simplify documentation
...
This follows the documentation writing guidelines, specifically
the "When to refer to a specific Godot version" section.
This also removes warning blocks for a known issue that was resolved in Godot 4.5.
2025-10-07 19:01:12 +02:00
Ted Gignac
4a8e23586a
Add details on the shader's eye position built-ins
...
Changed descriptions for CAMERA_POSITION_WORLD and EYE_OFFSET to benefit XR developers.
I decided to make this pull request because my dad spent a while trying to get the eye positions correct, eventually finding that CAMERA_POSITION_WORLD is the same for both eyes, and later that the EYE_OFFSET is not in world space.
My dad and I were almost led to believe that the perspective artifacts we saw with our custom shader were due to an optimization in the headset, and that we would have to work around it in our game, but it has since been fixed.
2025-09-26 10:56:03 -04:00
Hugo Locurcio
3406f57f23
Document automatic formatting with clang-format in Shaders style guide
2025-09-19 17:00:32 +02:00
Max Hilbrunner
bbb393cfc7
Merge pull request #11201 from stuckupfool/patch-1
...
Update shading_language.rst
2025-09-13 04:06:19 +02:00
Hugo Locurcio
0fc73a7c0d
Document REGION_RECT canvas shader built-in
...
This was added in 4.5 to better accomodate Sprite2D with regions enabled.
2025-08-22 18:18:33 +02:00
Justin Hertel
7a479aab52
Update shading_language.rst
...
Updated warning on per-instance shader uniforms indicating that "instance uniform arrays" are not supported
2025-08-13 15:04:07 -04:00
Hugo Locurcio
0ca1e47f08
Fix compute shader heightmap demo link in Using compute shaders
2025-08-04 18:26:44 +02:00
Adam Sawicki
0e4fee7988
Fix shader_functions.rst - description of pack/unpack for Snorm/Unorm functions
2025-07-28 12:53:34 +02:00
Danil Alexeev
3946ede7aa
Replace remaining uses of shorthand codeblock syntax, add CI check
2025-07-25 16:20:16 -04:00
skyace65
0056abc2ed
Update visual shader page for Godot 4.5
2025-07-12 21:39:01 -04:00
Colton Tytus
e6dca40701
Update visual_shaders.rst
...
Corrected file list position from right to left on line 39
2025-06-28 16:32:30 +02:00
A Thousand Ships
92cd36b50e
Various grammar and spelling fixes
2025-06-23 16:37:26 +02:00
Hugo Locurcio
8a6ad4c926
Replace uses of shorthand codeblock syntax to avoid issues with localization
...
Previously, many paragraphs in the documentation used `::` at the end of a line
as a replacement for a single colon (and `::` on the following line).
Due to this, the `::` was part of the extracted string for localization.
Weblate also showed a warning about the trailing `::`, as it's not
normally expected to be there.
This change requires translators to revalidate all modified strings.
However, considering many of those have broken code blocks due to translators
replacing `::` with `:`, it can be a good idea.
This also adds documentation writing guidelines for code blocks and admonitions.
This commit does not modify existing admonitions in any way (as this would
lead to a much larger diff, and require more localizable text to be revalidated
by translators).
2025-05-30 02:02:30 +02:00
Overkane
1377e26850
Fix mistake about sky shaders having fragment() function
2025-05-25 11:20:30 +05:00
Chaosus
916c65fe71
Few fixes for shader's built-in methods
2025-05-01 14:45:29 +03:00
Gio Aleman
c910af068e
Minor formatting fix
2025-04-16 21:37:34 -04:00
Matthew
7329907b4a
Merge pull request #10834 from pixcai/patch-1
...
Fix description of `shadows_disabled` shader render mode
2025-04-06 19:25:37 -04:00
Matthew
1a9c81e78f
Merge pull request #10740 from DevPoodle/compute-shader
...
Add reminder to free RID's in compute shader tutorial
2025-04-05 22:44:46 -04:00
Hugo Locurcio
93963ab701
Document support for 2D per-instance uniforms in Shading language ( #10749 )
...
* Document support for 2D per-instance uniforms in Shading language
2025-04-05 13:22:18 -04:00
pixcai
ba72293880
Update spatial_shader.rst
2025-04-04 17:14:33 +08:00
DevPoodle
53d814e66c
Add reminder to free RID's in compute shader tutorial
2025-03-04 13:11:44 -08:00
Hugo Locurcio
721603d902
Merge pull request #10714 from Calinou/custom-postprocessing-update-anchors
...
Update instructions on setting Full Rect anchor in Custom post-processing
2025-02-26 21:34:14 -05:00
Max Hilbrunner
e2c795c03d
Merge pull request #10680 from Calinou/ci-check-urls
...
GitHub Actions: Check URLs using lychee
2025-02-19 19:53:49 +01:00
Hugo Locurcio
51a597f7b6
GitHub Actions: Check URLs using lychee
...
This makes it possible to be aware of dead links and replace
them with other resources (such as archived versions) as
soon as possible.
2025-02-17 15:56:09 +01:00
GlitchCode24
619edd2cae
Update tutorials/shaders/shader_reference/shading_language.rst
...
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com >
2025-02-15 22:56:43 +02:00
GlitchCode24
99b4f2494c
Add else if
2025-02-15 22:47:20 +02:00
skyace65
1a4ba56b0f
Remove shader materials page
2025-02-06 19:59:36 -05:00
Matthew
ea1b882aa7
Merge pull request #10606 from tetrapod00/first-3d-update
...
Improve First 3D shader tutorial
2025-02-04 17:35:24 -05:00
tetrapod00
287ad02f83
Improve First 3D shader tutorial
2025-02-02 14:53:13 -08:00
tetrapod00
858c663ab1
Add note to use varyings to access builtins in shader pages
2025-02-02 13:00:12 -08:00
tetrapod
3a424470fe
Merge pull request #10554 from skyace65/First3DShader
...
Fully update first 3D Shader page
2025-01-28 17:08:44 -08:00
Matthew
0c82320d79
Merge pull request #10558 from tetrapod00/shader-tweaks
...
Improve shading language page
2025-01-28 20:08:31 -05:00
skyace65
33a91dff25
Fully update first 3D Shader page
2025-01-28 20:06:03 -05:00
tetrapod00
a2d2c07aee
Improve shading language page
2025-01-28 00:36:30 -08:00
Hugo Locurcio
e43dd0821c
Update list of spatial shader render modes for Godot 4.3
...
This also improves the documentation for existing render modes.
2025-01-25 18:42:57 +01:00
Matthew
c3cdf60394
Merge pull request #9653 from paxer/create_tree
...
Fix Making trees tutorial
2025-01-21 11:02:34 -05:00
skyace65
09c21f1039
Update using visual shaders page for 4.4
2025-01-20 19:10:16 -05:00
Max Hilbrunner
8f772f6e7d
Merge pull request #10502 from The-oldone/Fix-typo-in-visual-shaders
...
Fix `Switch` node boolean conversion description in Visual shaders
2025-01-16 01:03:08 +01:00
fearwalia
5d941e522d
Fix typo in visual shaders regarding switch node
...
Clarified that the last sentence is an
instruction, and rectified the state of the
components necessary to provide the output as
true
2025-01-15 23:08:03 +05:30