summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shaders
AgeCommit message (Collapse)Author
2022-04-11Use less blur for distant directional shadow splitsHugo Locurcio
This makes the transition between shadow splits less noticeable, specially when the expensive Blend Splits property is disabled.
2022-04-01Add color pass flags to Forward Clustered rendererjfons
This commit removes a lot of enum values related to the color render pass in favor of a new flag-bases approach. This means instead of hard-coding all the possible option combinations into enums, we can write our logic by checking a bit-mask. The changes in rendering_device_vulkan.cpp add support for unused attachments. That means RenderingDeviceVulkan::framebuffer_create() can take null RIDs in the attachments vector, which will result in VK_ATTACHMENT_UNUSED entries in the render pass. This is used in this same PR to establish fixed locations for the color pass attachments (only color and separate specular so far, but TAA will add motion vectors as well). This way the attachment locations in the shader can stay the same regardless of which attachments are actually used. Right now all the combinations of flags are generated, but we will need to add a way to limit the amount of combinations in the future.
2022-03-25Fix shader undefined variablenevarek
2022-03-18Add inverse projection matrix to fragment shader globalsnevarek
2022-03-18Rename several transform built-ins in shadersYuri Roubinsky
2022-03-16Merge pull request #49092 from BastiaanOlij/multiview_clusteredRémi Verschelde
Add multiview support to the clustered forward renderer
2022-03-14Fix D_GGX code which can cause divide-by-zero valsnowapril
When given roughness is lower than 0.01, d value in original code will be zero. This can make last return value as NAN because of divide-by-zero. This is well addressed in issue #56373. Modified code is referenced on D_GGX function of google/filament (https://github.com/google/filament/blob/main/shaders/src/brdf.fs#L54-L79) Signed-off-by: snowapril <sinjihng@gmail.com>
2022-03-13Merge pull request #58819 from vreon/fix-eyedir-zRémi Verschelde
Fix flipped EYEDIR.z in sky shaders
2022-03-08Sky renderer: Only flip Z when calculating panorama_coordsJesse Dubay
2022-03-08Merge pull request #49447 from Calinou/remove-shadow-color-propertyRémi Verschelde
Remove unused `shadow_color` property from Light3D
2022-03-05Fix flipped EYEDIR.z in sky shadersJesse Dubay
2022-03-05use the computed value ambient_accum for ambient_light in ↵Priyansh Rathi
scene_forward_mobile.glsl
2022-03-04Remove unused `shadow_color` property from Light3DHugo Locurcio
This shadow color property was no longer effective since the shaders were optimized to improve occupancy.
2022-03-03Add multiview/stereoscopic rendering support to the clustered forward rendererBastiaan Olij
2022-03-01Revert "Fix particle trail glitch"Rémi Verschelde
2022-02-26Fix particle trail glitchfloppyhammer
2022-02-23Filament specular fix. Clamp dot product between normal and view vectors. ↵Darryl Ryan
Fixes #58459.
2022-02-23Implementing OpenXR driverBastiaan Olij
2022-02-22Use Filament specular models and parametrizationclayjohn
2022-02-22Fix GPUParticles2D emission offset in global coordsfloppyhammer
2022-02-21Fix shader compilation error with anisotropyclayjohn
2022-02-17Merge pull request #58177 from clayjohn/VULKAN-prefiltered-radianceRémi Verschelde
2022-02-16Use prefiltered radianceclayjohn
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-15Add Particle Shader Userdatareduz
* Adds optional vec4 USERDATA1 .. USERDATA6 to particles, allowing to store custom data. * This data is allocated on demand, so shaders that do not use it do not cost more.
2022-02-11RendererRD: Remove binding specifier for push constantsRémi Verschelde
This is unsupported and glslang made it raise an error in 11.7.0: https://github.com/KhronosGroup/glslang/pull/2810 Co-authored-by: Clay John <claynjohn@gmail.com>
2022-02-09remove normal_to_panorama from spotlight projectorBartłomiej Dusak
2022-02-07Merge pull request #57682 from clayjohn/VULKAN-canvas-blurRémi Verschelde
2022-02-06Merge pull request #56844 from Calinou/ssr-fix-background-line-masterRémi Verschelde
Fix visible background line in intersections in screen-space reflections
2022-02-05Optimize and fix backbuffer gaussian blurclayjohn
2022-01-26Merge pull request #54574 from Ansraer/glow_mapRémi Verschelde
2022-01-20Merge pull request #55360 from Calinou/rename-bake-mode-propertiesRémi Verschelde
2022-01-20add support for glow mapsAnsraer
2022-01-16Fix visible background line in intersections in screen-space reflectionsHugo Locurcio
Adjusting the step grading by one resolves the issue without affecting performance or introducing adverse artifacts.
2022-01-13Fix various typosluz paz
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
2022-01-05Merge pull request #56208 from williamd67/GPULightmapper-sky-upside-downRémi Verschelde
2022-01-04Fix `world_vertex_coords` render mode usage in the shadersYuri Roubinsky
2022-01-04Merge pull request #51206 from clayjohn/Vulkan-ASSGIRémi Verschelde
2022-01-04Merge pull request #54409 from clayjohn/VULKAN-glow-flickerRémi Verschelde
2022-01-04Merge pull request #55424 from Calinou/voxelgi-remove-unused-struct-fieldsRémi Verschelde
Remove unused struct fields in VoxelGIData
2022-01-04Merge pull request #55422 from Calinou/gi-shader-remove-unused-defineRémi Verschelde
Remove unused code in GI shaders
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-12-24GPULightmapper: cube to panorama copy function flip y based on flagWilliam Deurwaarder
Cube to panorama copy function unconditionally flipped y, while other copy functions flipped y base on FLAG_FLIP_Y. Condition is added.
2021-12-14Rename and reorder bake mode properties for consistencyHugo Locurcio
The order now goes from least to most computationally expensive: - Disabled - Static - Dynamic
2021-12-08Fix volumetric fog in combination with spotlightsHendrik Brucker
2021-11-28Remove unused struct fields in VoxelGIDataHugo Locurcio
This reduces the struct size from 112 bytes to 96 bytes.
2021-11-28Remove unused code in GI shadersHugo Locurcio
2021-11-25[macOS / iOS] Use non atomic operation to store facing bits on MoltenVK.bruvzg
2021-11-24Merge pull request #51679 from Je06jm/fsrRémi Verschelde
AMD FidelityFX Super Resolution
2021-11-24[macOS / iOS] Use storage buffers instead of unsupported images for the ↵bruvzg
volumetric fog on MoltenVK.