Commit Graph

331 Commits

Author SHA1 Message Date
Andreas Raddau
91d77a80fa Fixed description for fragment shader VIEW built-in 2023-03-02 13:40:05 +01:00
Max Hilbrunner
d9d7fe908b Merge pull request #6559 from clayjohn/screen_textures
Document how to use screen space textures using uniform hints
2023-02-27 03:51:36 +01:00
clayjohn
8bf41b6ef1 Document how to use screen space textures using uniform hints 2023-02-26 14:17:23 -08:00
Clay John
c591c416e2 Mention the need for Flip Faces when using QuadMesh for post-processing (#6818)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-02-24 23:24:06 +01:00
Yuri Sizov
9473b6c9e3 Enable error reporting on the CI and address the remaining errors 2023-02-24 17:35:32 +01:00
Hugo Locurcio
513b1792c3 Clarify limitations of transparent materials in Spatial shaders 2023-02-24 02:33:20 +01:00
Hugo Locurcio
81f44d9fae Document the generation source used for SDF in CanvasItem shaders 2023-02-22 21:16:24 +01:00
bitsawer
e59dda20ea Improve the Shader preprocessor documentation (#6803) 2023-02-22 18:11:55 +01:00
Kwu564
79da2289cf Update compute_shaders.rst (#6762)
* Update compute_shaders.rst

32 bit = to 4 bytes not 8 bytes.

---------

Co-authored-by: Clay John <claynjohn@gmail.com>
2023-02-14 11:32:10 +01:00
Max Hilbrunner
19861b20a9 Merge pull request #6725 from KLee1248/shader_reference_types
Updates GLSL reference to contain GDScript types
2023-02-08 12:43:24 +01:00
Hugo Locurcio
f46c850908 Clarify behavior with #define and semicolons in Shader preprocessor 2023-02-08 00:01:04 +01:00
Kenneth Lee
ad1d3072c4 Updates GLSL reference to contain GDScript types
The typing information was ultimately determined in this file where
Varients are converted and packed:
a51ca2beaf/servers/rendering/renderer_rd/storage_rd/material_storage.cpp (L42)

The documentation doesn't contain a reference to dealing with how
Packed[Float|Int]Arrays are interpreted, but should be a much better
starting point for new users.
2023-02-06 14:09:43 -08:00
Max Hilbrunner
8a19f44532 Merge pull request #6666 from Calinou/shader-preprocessor-undefine-unexisting
Clarify `#undef` behavior on non-existing defines in Shader preprocessor
2023-02-06 10:18:46 +01:00
Matthew
bce6dd6001 Merge pull request #6707 from runny-yolk/patch-1
Linking between First 2D Shader and Custom Drawing
2023-02-02 20:43:37 -05:00
Clay John
c59431e9bd Rewrite compute shader tutorial (#6698)
* Rewrite compute shader tutorial

---------

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-02-01 07:50:28 +01:00
Max Hilbrunner
71cc131e81 Merge pull request #6710 from clayjohn/AT_LIGHT_PASS
Correct CanvasItem shader docs about AT_LIGHT_PASS builtin
2023-02-01 07:35:17 +01:00
clayjohn
0d50796dae Correct CanvasItem shader docs about AT_LIGHT_PASS builtin 2023-01-31 15:10:02 -08:00
addmix
b865eb2959 Fixed typo in spatial shader reference. 2023-01-31 13:54:51 -07:00
runny-yolk
71f4dd731d Linking between First 2D Shader and Custom Drawing 2023-01-31 15:17:12 +00:00
Yuri Rubinsky
aed85898c4 Add derivative with precision shader functions 2023-01-28 09:33:48 +03:00
Hugo Locurcio
a47366b378 Clarify #undef behavior on non-existing defines in Shader preprocessor 2023-01-25 19:50:07 +01:00
Yuri Sizov
c337204562 Fix formatting issues reported by the builder 2023-01-14 17:40:27 +03:00
Max Hilbrunner
93b6e0977b Merge pull request #6600 from ctwobosius/compute-shader-renderer-note
Add note that Compute Shaders only work with a Vulkan renderer
2023-01-14 08:26:41 +01:00
Calvin Wong
0f75624f34 Add note about Compute Shader renderer 2023-01-13 21:46:30 -08:00
Winston
11ffa4bf33 Explain LOD arguments in Shading language (#6593)
Fixes https://github.com/godotengine/godot-docs/issues/3904
2023-01-14 00:41:15 +01:00
Hugo Locurcio
e2313a8395 Improve Shader preprocessor documentation (#6563) 2023-01-13 21:33:07 +01:00
Yuri Sizov
c5f066b27e Merge pull request #6343 from alcomposer/patch-1
Replace the hint_albedo hint with source_color in the shading reference
2023-01-13 16:52:33 +03:00
Max Hilbrunner
b0eff76a0f Merge pull request #6569 from jmdejong/patch-3
fix imulExtended description
2023-01-09 06:48:03 +01:00
Winston
0e69978598 Use 32 bits when converting back from bytes in Using compute shaders (#6571)
Fixes an oversight from a previous documentation update.
2023-01-09 01:37:25 +01:00
J.M. de Jong
116cfdf9b7 fix imulExtended description 2023-01-08 18:38:02 +01:00
Jon Gonzalez
b603b1df3a Update compute_shaders.rst (#6468) 2023-01-04 12:21:43 -08:00
Yuri Sizov
6b9ec31b0a Fix reported formatting issues and property references 2022-12-27 21:25:42 +03:00
J.M. de Jong
7fe43cfc8e Update Shading language to refer to set_shader_parameter() (#6515) 2022-12-26 17:21:06 +01:00
Hugo Locurcio
319106ba2b Document global and per-instance uniforms in Shading language (#6414) 2022-12-23 17:30:28 +01:00
Mara Huldra
0d1d5735ee Replace all uses of hint_color/hint_albedo with source_color (#6450) 2022-12-02 23:17:35 +01:00
Arnaud Billon
329ed4c0a0 Update _anisotropic hint suffix in Shading language (#6447) 2022-12-02 18:05:59 +01:00
Nông Văn Tình
f133c1ce64 Mention DEPTH must be set in all branches in Spatial shaders (#6429)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-11-28 22:50:45 +01:00
Daniel Z
6f55c34259 Fix NDC coordinates for Vulkan in Screen-reading shaders (#6344) 2022-10-28 21:42:21 +02:00
alcomposer
66c6e38f46 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
2022-10-27 16:02:21 +10:30
Max Hilbrunner
99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Max Hilbrunner
5bb50c07b6 Nuke old renderer comparison page 2022-10-16 00:01:21 +02:00
Max Hilbrunner
6c13f5ba58 More Godot 4 renames and fixes (#6317)
* Move ImmediateGeometry -> ImmediateMesh

* More Godot 3 -> Godot 4 renames
2022-10-15 23:12:48 +02:00
Max Hilbrunner
198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
Max Hilbrunner
b82cd0690d A bunch of renames for Godot 4.0 2022-10-15 18:19:12 +02:00
Max Hilbrunner
89bd854f66 Merge pull request #6285 from yedpodtrzitko/yed/viewport-subviewport
fix: rename `ViewportContainer` to `SubViewportContainer`
2022-10-11 21:11:34 +02:00
Max Hilbrunner
1fffab8cf2 Formatting, syntax and URL fixes 2022-10-11 10:14:37 +02:00
Max Hilbrunner
b196bcb40b Merge pull request #6159 from dotlogix/Features/ComputeShader_Tutorial
Adding example code for compute shaders
2022-10-11 07:37:26 +02:00
Jiri Suchan
3370ef2ef9 fix: rename ViewportContainer to SubViewportContainer 2022-10-09 20:07:25 +09:00
Max Hilbrunner
46a907f445 Merge pull request #6223 from DeltaNeverUsed/patch-1
Changed set_shader_param to set_shader_parameter
2022-10-01 17:10:38 +02:00
clayjohn
39e0f7cf15 Clean up canvas item shader reference and add new light shader built ins 2022-09-28 12:27:33 -07:00