Ted Gignac
304d1070f2
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-10-02 15:54:07 +02:00
Hugo Locurcio
5e28d9d2ca
Document automatic formatting with clang-format in Shaders style guide
2025-10-02 15:54:07 +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
Ben
d251fe8442
Divide pi out of light color
...
This should have been updated in https://github.com/godotengine/godot-docs/pull/7568
2025-01-12 20:13:49 -08:00
Max Hilbrunner
70a32c6950
Merge pull request #10261 from tetrapod00/improve-uniform
...
Reorganize and improve shader Uniforms section
2025-01-03 10:47:26 +01:00
Max Hilbrunner
0ebcd118d2
Merge pull request #10315 from tetrapod00/shader-global-clarify
...
Explain difference between global shader uniforms and global scope in shaders
2025-01-03 10:30:05 +01:00
tetrapod00
c4d3aa134a
Standardize RST header syntax
2024-12-29 13:44:09 -08:00
Raul Santos
cea78730d0
[.NET] Use collection expressions
...
As of C# 12 we can now use collection expressions to reduce some boilerplate when initializing collections.
2024-12-21 03:38:42 +01:00
Max Hilbrunner
8b36717530
Merge pull request #10406 from tetrapod00/fix-source-color
...
Fix usage of `source_color` with `hint_depth_texture`
2024-12-16 19:10:23 +01:00
Max Hilbrunner
8c18786cc1
Merge pull request #10409 from tetrapod00/no-simply
...
Simply remove some words
2024-12-15 17:31:18 +01:00
tetrapod00
bd25f5813a
Simply remove some words
2024-12-14 20:36:17 -08:00
tetrapod00
0da4dbe145
Add self links to shader functions page
2024-12-13 22:17:49 -08:00
tetrapod00
6f0e3bcfaf
Fix usage of source_color with hint_depth_texture
2024-12-13 19:34:09 -08:00
Ryan
7c1eefda90
TIME is affected by time_scale
2024-12-07 21:14:22 -05:00
tetrapod00
55cd8723fc
Improve Shader functions page
2024-12-05 13:09:40 -08:00