summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shaders
AgeCommit message (Collapse)Author
2023-01-05One Copyright Update to rule them allRémi Verschelde
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-04Use proper indices for lights, decals, and reflection probes in mobile scene ↵clayjohn
shader
2022-12-23Merge pull request #70253 from BastiaanOlij/cleanup_sky_renderRémi Verschelde
Cleanup and improve sky render
2022-12-23Cleanup and improve sky renderBastiaan Olij
2022-12-22Check for disabled particle trail particle before initializing particle trailclayjohn
2022-12-21Disable particle trails particles when parent parent is not active.clayjohn
2022-12-17Merge pull request #70122 from clayjohn/VRS-r8uintRémi Verschelde
Don't attempt to create or use an R8_UINT texture as storage if VRS is not supported
2022-12-16Don't attempt to create or use an R8_UINT texture as storage if VRS is not ↵clayjohn
supported
2022-12-15Merge pull request #56804 from Calinou/ssr-add-max-roughness-cutoffRémi Verschelde
Add maximum roughness cutoff to SSR to improve performance
2022-12-13Merge pull request #70009 from clayjohn/glow-hqRémi Verschelde
Remove high quality glow as it is not any higher quality than regular glow
2022-12-13Merge pull request #70003 from clayjohn/GLES3-ccRémi Verschelde
Various fixes and documentation for CanvasGroup
2022-12-13Various fixes and documentation for CanvasGroupclayjohn
Properly apply custom materials with CanvasGroups in the GLES3 backend Properly blur backbuffer when using a partial rect in forward_plus and gl_compatibility renderers Properly set fit_margin when clear_margin is set Fix shader error during backbuffer clear in mobile renderer
2022-12-13Remove high quality glow as it is not any higher quality than regular glowclayjohn
2022-12-13Merge pull request #69985 from clayjohn/mobile-rimRémi Verschelde
Ensure that rim lighting uses an exponent base greater than zero
2022-12-12Ensure that rim lighting uses a exponent base greater than zeroclayjohn
This avoids the undefined behavior that happens if the base is zero and the exponent is zero
2022-12-10Add maximum roughness cutoff to SSR to improve performanceHugo Locurcio
In a test scene with mixed rough and non-rough materials, this saves upwards of 0.15 ms of GPU time with very little visual artifacting (GTX 1080, 2560×1440).
2022-12-09Fade out SSR with roughness so that it doesn't show at high roughness amountsclayjohn
2022-12-03Implement CAMERA_VISIBLE_LAYERS as built-in shader variableNumbuhFour
2022-12-03Merge pull request #69522 from clayjohn/IBL-black-metalRémi Verschelde
Allow black metallic materials to reflect IBL
2022-12-02Allow black metallic materials to reflect IBLclayjohn
2022-12-02Properly remap roughness when reading from radiance mapclayjohn
This ensures that we consistently use perceptual roughness which matches the behaviour of most other PBR renderers like Blender, Ue4 and Godot 3
2022-11-20Merge pull request #68830 from Ayush-singla27/issuebranchRémi Verschelde
fixed incorrect mesh normals in shaders
2022-11-18Fix drawing of 2D skeletons in the RD renderer.clayjohn
Also clean up skeleton code in preparation for adding them to GLES3 Properly update Mesh2D AABBs when skeleton is updated
2022-11-19fixed incorrect mesh normals in shadersAyush Singla
2022-11-18Merge pull request #68710 from BastiaanOlij/fix_vrsRémi Verschelde
Fix VRS issues
2022-11-17Finish implementing Canvas Background modeclayjohn
2022-11-17Fix VRS issuesBastiaan Olij
2022-11-15Merge pull request #68673 from clayjohn/RD-alpha-hashRémi Verschelde
Fix alpha hash by correcting typos and doing calculations in object space
2022-11-15Merge pull request #68487 from clayjohn/RD-mobile-rasterRémi Verschelde
Use raster versions of copy effects for 2D operations when using the mobile renderer
2022-11-14Fix alpha hash by correcting typos and doing calculations in object spaceclayjohn
2022-11-11Merge pull request #67746 from SonnyBonds/fix_cluster_shader_mvkRémi Verschelde
Fix cluster_render.glsl failing on some Macs
2022-11-11Merge pull request #67972 from and-rad/vector-field-consistencyRémi Verschelde
Fix inconsistency between vector field texture and world space directions
2022-11-10Use raster versions of copy effects for 2D operations when using the mobile ↵clayjohn
renderer This PR implements a few basic copy operations in raster that weren't available before
2022-10-31Merge pull request #67915 from RevoluPowered/fix-intel-macbook-crash-subgroupsRémi Verschelde
Ensure vulkan subgroups are disabled for MoltenVK
2022-10-27Fix ss_effects_flags uniform in clustered forward rendererclayjohn
This comes from an uncaught merge conflict resulting from the split of scene_data into scene_data and implementation_data
2022-10-27Merge pull request #66107 from devloglogan/ambient-light-disabled-fixClay John
Fix ambient_light_disabled render mode flag
2022-10-27Improved consistency between vector field texture and world spaceAndreas Raddau
2022-10-26Ensure vulkan subgroups are disabled for MoltenVKGordon MacPherson
We found they don't work on intel macbooks properly at all. Possible future solutions: - update to moltenvk. - update to spirv may resolve it.
2022-10-22Fix cluster_render.glsl failing on some MacsAnders Stenberg
Some Macs encounter an internal error when compiling cluster_render.glsl caused by a likely bug in the MVK/Metal compiler when using gl_HelperInvocation.
2022-10-18Code simplificationsMarkus Sauermann
1. Viewport::get_visible_rect().position is always zero. So Control::get_window_rect is identical to Control::get_global_rect. Remove Control::get_window_rect since it is not used in the source code. 2. sqrt(a * a) = abs(a) for doubles 3. Simplify affine_inverse combination 4. Simplify calculation in shaders
2022-10-13Merge pull request #67335 from clayjohn/GLES3-2d-lightsRémi Verschelde
Add 2D lights to OpenGL3 canvas renderer
2022-10-12Add 2D lights to OpenGL3 canvas rendererclayjohn
This is an initial implementation using the same single-pass approach as the RenderingDevice.
2022-10-13Fix volumetric fog not rendering at densities lower than or equal to 0.001Hugo Locurcio
This allows volumetric fog to render with the lowest density that can be specified in the inspector (0.0001).
2022-10-04Fixing artifacts in SSRBastiaan Olij
2022-10-02Update Instance flags in shaders to match instance flags in engineclayjohn
2022-09-30Fix typos with codespellRémi Verschelde
Using codespell 2.3-dev from current git. And fix typo in `methods.py` for `vsproj=yes` option (still won't work though).
2022-09-30Merge pull request #66178 from clayjohn/double-precision-renderingRémi Verschelde
Emulate double precision for regular rendering operation when REAL_T_IS_DOUBLE
2022-09-30Merge pull request #66626 from danboo/fix-typo-run-debug-collisonsRémi Verschelde
Fix typos - "collison" -> "collision"
2022-09-29Fix typo - "collison" -> "collision"danboo
2022-09-28Clean up canvas light shader API.clayjohn
Expose LIGHT_ENERGY and LIGHT_IS_DIRECTIONAL. Add LIGHT_DIRECTION