summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_rd/shaders/forward_clustered
Commit message (Collapse)AuthorAgeFilesLines
* Allow `SCREEN_UV` to be used in light function of spatial shaderChaosus2024-11-191-3/+3
|
* Add multiple specialization constants to Forward+ and Mobile.Dario2024-11-042-31/+42
|
* Fix soft shadows by increasing the bit count for specialization constants.Dario2024-10-281-4/+4
|
* Implement asynchronous transfer queues, thread guards on RenderingDevice. ↵Dario2024-10-022-35/+107
| | | | | | | | | | | Add ubershaders and rework pipeline caches for Forward+ and Mobile. - Implements asynchronous transfer queues from PR #87590. - Adds ubershaders that can run with specialization constants specified as push constants. - Pipelines with specialization constants can compile in the background. - Added monitoring for pipeline compilations. - Materials and shaders can now be created asynchronously on background threads. - Meshes that are loaded on background threads can also compile pipelines as part of the loading process.
* Implement vertex shadingywmaa2024-09-291-4/+186
| | | | | | | | This adds support in all backends, but the Compatibility renderer works the best. Mobile and Forward+ can only support one directional light shader (the first in the tree) While the Compatibility renderer supports any number of shadows. Co-authored-by: Clay John <claynjohn@gmail.com>
* Merge pull request #97428 from clayjohn/shadow-filter-jitter-rebaseRémi Verschelde2024-09-261-8/+8
|\ | | | | | | Jitter shadow map dithering pattern across frames when TAA is enabled
| * Jitter shadow map dithering pattern across frames when TAA is enabledHugo Locurcio2024-09-241-8/+8
| | | | | | | | | | | | | | | | | | | | This improves shadow quality by reducing the visibility of the noisy pattern caused by dithering. This jittering also applies when FSR2 is enabled, as it provides its own form of temporal antialiasing. Co-authored-by: Clay John <claynjohn@gmail.com>
* | SCons: Add unobtrusive type hints in SCons filesThaddeus Crews2024-09-251-0/+1
|/
* Style: Apply new `clang-format` changesThaddeus Crews2024-09-201-4/+6
|
* LightmapGI: Pack L1 SH coefficients for directional lightmapsBlueCube33102024-09-051-10/+9
|
* Merge pull request #93448 from clayjohn/transmittance-fixesRémi Verschelde2024-09-031-2/+3
|\ | | | | | | Various fixes for transmittance effect
| * Various fixes for transmittance effectclayjohn2024-06-211-2/+3
| | | | | | | | | | | | | | | | Use correct shadow sampling for omni and spot lights Disable transmittance if shadows are disabled Correct DirectionalLight transmittance bias to match shadow bias (its still pretty sensitive though)
* | Add `CLIP_SPACE_FAR` built-in to spatial shaderChaosus2024-08-271-0/+2
| |
* | Merge pull request #95888 from clayjohn/Lightmap-SH-coefficientsRémi Verschelde2024-08-251-10/+4
|\ \ | | | | | | | | | Use correct lightmap coefficients to ensure that the directional lightmap mode looks correct
| * | Use correct lightmap coefficients to ensure that the directional lightmap ↵clayjohn2024-08-211-10/+4
| | | | | | | | | | | | | | | | | | mode looks correct Also remove the metallic option from directional lightmap as it is guaranteed to return negative numbers in many cases
* | | LightmapGI: Fix shader data alignment after #89919BlueCube33102024-08-211-1/+1
| | |
* | | Add Metal support for macOS (arm64) and iOSStuart Carnie2024-08-201-1/+1
| | |
* | | Merge pull request #89919 from BlueCube3310/bicubic-lightmapRémi Verschelde2024-08-202-6/+86
|\ \ \ | | | | | | | | | | | | Implement bicubic sampling for lightmaps
| * | | Implement support for bicubic lightmap filteringBlueCube33102024-08-192-6/+86
| | | | | | | | | | | | | | | | Co-authored-by: Calinou <hugo.locurcio@hugo.pro>
* | | | Merge pull request #86000 from jsjtxietian/add-missing-model_normal_matrixRémi Verschelde2024-08-201-0/+7
|\ \ \ \ | |_|/ / |/| | | | | | | Add `model_normal_matrix` for fragment shader
| * | | Add model_normal_matrix for fragment shaderjsjtxietian2024-08-201-0/+7
| |/ /
* | | Merge pull request #92213 from clayjohn/ambient-disabledRémi Verschelde2024-08-191-8/+8
|\ \ \ | | | | | | | | | | | | Disable all sources of ambient light when `ambient_light_disabled` render mode is used
| * | | Disable all sources of ambient light when `ambient_light_disabled` render ↵clayjohn2024-05-211-8/+8
| | |/ | |/| | | | | | | mode is used
* | | Fix undefined `alpha_scissor` in standard shaderjsjtxietian2024-08-151-1/+1
| |/ |/|
* | Fix position from vertex shader partially uninitializedPedro J. Estébanez2024-07-231-1/+1
|/
* reverted naming to premul alpha (no T)QbieShay2024-05-011-6/+6
| | | | | | | Initially 3d had premulT alpha as a keyword. Since Canvas item uses mixed premul and premult as keywords, 3D is changed as well to keep consistency with 2D. Unfortunately this keeps inconsistency with the internal ENUM.
* Added premult alpha blending to 3D (spatial) shaders.QbieShay2024-05-011-0/+7
| | | | | Co-authored-by: jitspoe <jitspoe@yahoo.com> Co-authored-by: Clay John <claynjohn@gmail.com>
* Fix issue in shadow to opacityBastiaan Olij2024-04-261-10/+2
|
* Properly calculate penumbra for soft shadows with reverse zclayjohn2024-04-251-1/+1
| | | | Also fix a related bug where the DirectionalLight3D size was ignored unless a positional light with soft shadows touched the mesh
* Add LIGHT_VERTEX to fragment shaderRob Blanckaert2024-04-251-0/+14
| | | | | Adds a new variable to the fragment shader to specify the vertex position used when calculating lighting.
* Use Reverse Z for the depth bufferKhasehemwy2024-04-041-2/+2
|
* Add optional depth fogEidolon2024-02-171-1/+10
|
* Add ivec variants to multiview_uv for stereo renderingBastiaan Olij2024-01-231-0/+12
|
* Use best fit normals for storing screen space normalsclayjohn2023-12-213-6/+91
|
* Merge pull request #82668 from mrjustaguy/masterYuri Sizov2023-12-181-5/+5
|\ | | | | | | Improve split blending logic for Vulkan
| * Improve Split Blendingmrjustaguy2023-10-021-5/+5
| | | | | | | | Improve Split Blending Logic
* | Reduce the number of samplers used by the scene shadersclayjohn2023-12-152-34/+23
| | | | | | | | The hard limit for Apple devices is 16 samplers per stage. So we need to ensure we use less than that
* | Use render pass uniform set to store viewport samplers.clayjohn2023-11-082-72/+96
| | | | | | | | | | | | | | | | This fixes a bugs where per-viewport samplers were being used for internal texture fetches (probes, sky, etc.). This also fixes a bug when using multiple viewports in the same scene. This also fixes a bug where the texture bias would override the bias from 3D scale.
* | Fix bug with alpha to coverage by enabling depth discard when using alpha to ↵clayjohn2023-10-301-4/+2
| | | | | | | | coverage
* | Only perform modelview transform on tangent and binormal when vertex shader ↵clayjohn2023-10-051-2/+1
| | | | | | | | is in local space
* | Vertex and attribute compression to reduce the size of the vertex format.clayjohn2023-10-052-33/+138
|/ | | | | | | | | | | | | This allows Godot to automatically compress meshes to save a lot of bandwidth. In general, this requires no interaction from the user and should result in no noticable quality loss. This scheme is not backwards compatible, so we have provided an upgrade mechanism, and a mesh versioning mechanism. Existing meshes can still be used as a result, but users can get a performance boost by reimporting assets.
* Add FidelityFX Super Resolution 2.2 (FSR 2.2.1) support.Dario2023-09-251-0/+2
| | | | Introduces support for FSR2 as a new upscaler option available from the project settings. Also introduces an specific render list for surfaces that require motion and the ability to derive motion vectors from depth buffer and camera motion.
* Fix LightmapGI shading sometimes being unlit or blackbitsawer2023-09-201-6/+5
|
* Implement render mode fog_disabled and BaseMaterial3D setting Disable FogMilan Gruner2023-09-051-0/+10
|
* Flip convention of motion vector to point from current pixel to the previous ↵Dario2023-08-281-1/+1
| | | | pixel.
* Add motion vector support for animated surfaces like skeletons or blend shapes.Dario2023-08-161-21/+65
| | | | Extends mesh instances that required custom vertex buffers to create two alternating buffers that are written to and binds them to use them as the previous vertex buffer when generating motion vectors.
* Fix use of discard in shadersClay2023-07-241-2/+8
| | | | | | discard was being included in all shaders set to depth pass opaque, which is the majority of shaders Instead it should only be used with alpha prepass materials
* Merge pull request #77740 from ChibiDenDen/simplify_vulkanYuri Sizov2023-07-122-47/+34
|\ | | | | | | Replace sampler arrays with constant sampler elements, simplify and reuse code for all shaders
| * replace sampler arrays with constant sampler elementsChibiDenDen2023-06-222-47/+34
| |
* | Apply reprojection in multiview for our cluster lookupBastiaan Olij2023-06-211-2/+9
| |