Max Hilbrunner
64d50e60e3
Merge pull request #8378 from kleonc/vertex-shader-built-in-ids
...
Document `VERTEX_ID`, `INSTANCE_ID` built-ins for `canvas_item` vertex shader
2023-11-11 05:23:39 +01:00
Max Hilbrunner
17a9572ebc
Merge pull request #8329 from Calinou/screen-reading-shaders-screen-texture-mipmaps
...
Emphasize the importance of mipmaps for `textureLod()` in Screen-reading shaders
2023-11-11 05:15:16 +01:00
Hex-4
d5ec2c6e5f
Close #7690 (add info for shader hints and default values) ( #8117 )
...
* add comment for default values
* Add a line telling where the default value goes
---------
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2023-10-09 01:21:22 +02:00
Thygrrr
ae2bdfd44e
Update spatial_shader.rst
...
The reference page suggests a very unfortunate lighting function that modulades the color values in ALBEDO again. This does not seem representative of the shading model.
Also, it omitted LIGHT_COLOR; repalcing the ALBEDO term with LIGHT_COLOR gives a much more expected diffuse lighting example.
2023-10-09 01:19:53 +02:00
TidB
8f9f3fa4bc
Fix SIZE built-in in fog shader reference
...
It has been renamed from EXTENTS; while its description was completely unrelated (copied from the sky shader reference)
2023-10-09 00:30:04 +02:00
Max Hilbrunner
5eefb344e8
Merge pull request #7655 from Calinou/fix-backticks
2023-08-01 05:36:33 +02:00
Max Hilbrunner
ecb84b3234
Merge pull request #7560 from cridenour/patch-1
2023-08-01 05:28:07 +02:00
Matthew
6e91d6eb68
Merge pull request #7572 from ffernn-dev/patch-1
...
Missing links to shader reference pages
2023-08-01 05:24:52 +02:00
Matthew
dfb7d7314e
Merge pull request #7561 from Calinou/spatial-shader-light-color-pi-multiplier
...
Document `LIGHT_COLOR` being multiplied by `PI` in Spatial shader
2023-08-01 05:17:07 +02:00
Max Hilbrunner
347d97ab32
Merge pull request #7677 from br1trs/patch-2
2023-08-01 05:11:03 +02:00
Curry
a86f24f098
Update spatial_shader.rst
...
Changes WORLD_NORMAL_MATRIX to MODEL_NORMAL_MATRIX
2023-06-14 04:25:16 +10:00
bitsawer
b3db4c16b4
Update pygments to 2.15.1 and restore fixed shader syntax highlighting
2023-05-29 17:53:09 +03:00
Alex Es
c3cda2cf50
Update descriptions and types for CanvasItem built-ins ( #7283 )
...
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com >
2023-05-17 10:29:18 +02:00
Johan Aires Rastén
d3f0ec6c3a
Add SPECULAR_AMOUNT spatial light shader built-in
2023-05-04 09:45:05 +02:00
Johan
930ad1f77b
Add LIGHT_IS_DIRECTIONAL built-in for spatial shaders ( #7194 )
2023-04-26 10:23:20 -07:00
Max Hilbrunner
628d4f94d2
Complete render modes list in shaders docs
2023-04-14 03:19:55 +02:00
Bastiaan Olij
e36ef29eba
Add descriptions of multiview build-ins and EYE_OFFSET to shader reference
2023-04-14 02:47:57 +02:00
Alfonso Arbona Gimeno
a9076972a7
Fix small typos in the particle shader doc
...
A word was missing a letter and a description had a wrongly capitalized word. Now it matches the rest of the document
2023-04-09 04:43:06 +00:00
Tom McLean
78b978c9bd
Fix references to DEPTH_TEXTURE and SCREEN_TEXTURE ( #7119 )
...
* Fix references to DEPTH_TEXTURE
---------
Co-authored-by: Clay John <claynjohn@gmail.com >
2023-04-07 18:32:25 +02:00
Hugo Locurcio
96eb7d05ff
Document SDFGI sharp reflections only working on opaque materials
...
Transparent materials only use rough reflections, likely for
performance reasons.
2023-03-24 21:08:25 +01:00
Max Hilbrunner
292804554e
Merge pull request #6974 from hmans/improve-shader-include-docs
...
Improve shader #include documentation
2023-03-19 02:11:35 +01:00
clayjohn
0c8c8feb72
Explain the start and process functions for particle shaders
...
Add references in the particle shader doc and the migration guide
2023-03-17 12:28:23 -07:00
Hendrik Mans
57a1bce6e2
Fix typo ("blackslash") on shader preprocessor page
2023-03-13 11:33:10 +01:00
Hendrik Mans
6360ebc73c
Improve shader #include documentation
2023-03-13 11:29:37 +01:00
Hugo Locurcio
17e6a5f7bb
Mention function overloading not being supported in Shading language ( #6940 )
...
* Mention function overloading not being supported in Shading language
This also adds a performance note for `discard`.
---------
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com >
2023-03-13 02:25:17 +01:00
Hugo Locurcio
9286f1b466
Remove references to removed GLES2 backend
...
- Update FAQ to remove issues resolved in 4.0, and add more advice
on resolving VRR flicker issues.
2023-03-11 02:55:30 +01:00
Bryce
8deb600ac5
Fix :code: typo in canvas_item_shaders doc ( #6921 )
2023-03-07 13:56:07 +03:00
Andreas Raddau
91d77a80fa
Fixed description for fragment shader VIEW built-in
2023-03-02 13:40:05 +01:00
clayjohn
8bf41b6ef1
Document how to use screen space textures using uniform hints
2023-02-26 14:17:23 -08: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
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
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
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
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
J.M. de Jong
116cfdf9b7
fix imulExtended description
2023-01-08 18:38:02 +01: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