summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_rd
Commit message (Collapse)AuthorAgeFilesLines
* Implement CAMERA_VISIBLE_LAYERS as built-in shader variableNumbuhFour2022-12-036-2/+7
|
* Merge pull request #69522 from clayjohn/IBL-black-metalRémi Verschelde2022-12-033-3/+3
|\ | | | | | | Allow black metallic materials to reflect IBL
| * Allow black metallic materials to reflect IBLclayjohn2022-12-023-3/+3
| |
* | Merge pull request #69514 from clayjohn/IBL-roughnessRémi Verschelde2022-12-034-18/+9
|\ \ | |/ |/| | | Properly remap roughness when reading from radiance map
| * Properly remap roughness when reading from radiance mapclayjohn2022-12-024-18/+9
| | | | | | | | This ensures that we consistently use perceptual roughness which matches the behaviour of most other PBR renderers like Blender, Ue4 and Godot 3
* | Add Skeletons and Blend Shapes to the OpenGL rendererclayjohn2022-11-291-1/+0
|/ | | | | | | | | | This uses a similar multipass approach to blend shapes as Godot 3.x, the major difference here is that we need to convert the normals and tangents to octahedral for rendering. Skeletons work the same as the Vulkan renderer except the bones are stored in a texture as they were in 3.x.
* Fix parameters for hash_murmur3_one_32Markus Sauermann2022-11-221-2/+2
| | | | | | | | | | | In multiple locations in the codebase hash_murmur3_one_32 is used for generating hash values. Whenever a sequence of multiple hash-calculation happens within a single function, the previous hash value is always used as input in the following hash-calculations. The only exception is get_cache_multipass, where currently the previous hash value is overridden without utilizing it. This patch corrects that.
* Merge pull request #68942 from Chaosus/barrier_mask_flagsRémi Verschelde2022-11-227-16/+16
|\ | | | | | | Expose `BarrierMask` as flags enum in `RenderingDevice`
| * Expose `BarrierMask` as flags enum in `RenderingDevice`Yuri Rubinsky2022-11-227-16/+16
| |
* | Code simplifications found by cppcheckMarkus Sauermann2022-11-212-8/+1
|/ | | | | | | They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables
* Merge pull request #68830 from Ayush-singla27/issuebranchRémi Verschelde2022-11-203-3/+3
|\ | | | | | | fixed incorrect mesh normals in shaders
| * fixed incorrect mesh normals in shadersAyush Singla2022-11-193-3/+3
| |
* | Fix drawing of 2D skeletons in the RD renderer.clayjohn2022-11-186-66/+12
| | | | | | | | | | | | Also clean up skeleton code in preparation for adding them to GLES3 Properly update Mesh2D AABBs when skeleton is updated
* | Merge pull request #68710 from BastiaanOlij/fix_vrsRémi Verschelde2022-11-182-13/+18
|\ \ | | | | | | | | | Fix VRS issues
| * | Fix VRS issuesBastiaan Olij2022-11-172-13/+18
| | |
* | | Finish implementing Canvas Background modeclayjohn2022-11-175-37/+73
| | |
* | | GLES3 TextureStorage - add missing null checksdzil1232022-11-161-0/+1
|/ /
* | Merge pull request #68673 from clayjohn/RD-alpha-hashRémi Verschelde2022-11-153-5/+8
|\ \ | | | | | | | | | Fix alpha hash by correcting typos and doing calculations in object space
| * | Fix alpha hash by correcting typos and doing calculations in object spaceclayjohn2022-11-143-5/+8
| | |
* | | Merge pull request #68426 from clayjohn/GLES3-particlesRémi Verschelde2022-11-152-8/+5
|\ \ \ | | | | | | | | | | | | Add GPUParticles to the OpenGL3 renderer.
| * | | Add GPUParticles to the OpenGL3 renderer.clayjohn2022-11-142-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes collision (2D SDF, Box, Sphere, Heightmap), attraction (Box, Sphere), and all sorting modes. This does not include 3D SDF collisions, trails, or manual emission.
* | | | Merge pull request #68487 from clayjohn/RD-mobile-rasterRémi Verschelde2022-11-156-44/+158
|\ \ \ \ | | | | | | | | | | | | | | | Use raster versions of copy effects for 2D operations when using the mobile renderer
| * | | | Use raster versions of copy effects for 2D operations when using the mobile ↵clayjohn2022-11-106-44/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | renderer This PR implements a few basic copy operations in raster that weren't available before
* | | | | Merge pull request #68628 from clayjohn/shadowsRémi Verschelde2022-11-156-6/+30
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | Implement is_animated and casts_shadows
| * | | | Implement is_animated and casts_shadowsclayjohn2022-11-136-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the renderer to correctly decide when to update shadow maps This PR also adds TIME to a few missing places
* | | | | Merge pull request #68339 from clayjohn/RD-shadow-acneRémi Verschelde2022-11-141-9/+10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Scale light shadow bias by soft_shadow_scale to reduce shadow acne
| * | | | | Scale light shadow bias by soft_shadow_scale to reduce shadow acne on high ↵clayjohn2022-11-061-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | quality settings
* | | | | | Remove redundant Variant-types initializationsMarkus Sauermann2022-11-143-6/+6
| |_|_|/ / |/| | | |
* | | | | Merge pull request #61884 from Calinou/alpha-hash-use-opaque-pipelineRémi Verschelde2022-11-142-0/+6
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | Use opaque rendering pipeline for alpha hash materials
| * | | | Use opaque rendering pipeline for alpha hash materialsHugo Locurcio2022-06-102-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has several benefits: - Transparency sorting issues inherent to alpha blending no longer occur. - Alpha hash materials can now cast shadows (also works with GeometryInstance3D Transparency's property for alpha hash materials). - Higher performance.
* | | | | Merge pull request #68574 from clayjohn/RD-shadow-timeRémi Verschelde2022-11-132-0/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Properly set TIME shader uniform when rendering shadows
| * | | | | Properly set TIME shader uniform when rendering shadowsclayjohn2022-11-122-0/+4
| | | | | |
* | | | | | Merge pull request #67746 from SonnyBonds/fix_cluster_shader_mvkRémi Verschelde2022-11-111-2/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Fix cluster_render.glsl failing on some Macs
| * | | | | | Fix cluster_render.glsl failing on some MacsAnders Stenberg2022-10-221-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge pull request #67972 from and-rad/vector-field-consistencyRémi Verschelde2022-11-111-1/+1
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | Fix inconsistency between vector field texture and world space directions
| * | | | | | Improved consistency between vector field texture and world spaceAndreas Raddau2022-10-271-1/+1
| | | | | | |
* | | | | | | Merge pull request #68496 from clayjohn/RD-pointRémi Verschelde2022-11-111-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Ensure user shader is used in depth pass when point size is used
| * | | | | | | Ensure user shader is used in depth pass when point size is usedclayjohn2022-11-101-1/+1
| | |_|_|_|/ / | |/| | | | |
* | | | | | | Merge pull request #68511 from clayjohn/RD-mobile-skyRémi Verschelde2022-11-111-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Enable mipmaps in cubemap roughness shader
| * | | | | | | Enable mipmaps in cubemap roughness shaderclayjohn2022-11-101-2/+2
| |/ / / / / /
* | | | | | | Merge pull request #68186 from pkdawson/expose-texture-rdRémi Verschelde2022-11-112-0/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Expose texture_get_rd_texture for scripts
| * | | | | | | Expose texture_get_rd_texturePatrick Dawson2022-11-032-0/+9
| | | | | | | |
* | | | | | | | Merge pull request #67374 from MrBlockers/fix-draw-primitiveRémi Verschelde2022-11-111-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix draw_primitive ignoring texture argument
| * | | | | | | | Fix draw_primitive ignoring texture argumentMrBlockers2022-10-211-1/+1
| | |_|_|/ / / / | |/| | | | | |
* | | | | | | | Fix GPUParticles not rendering in doubles build of the engine.clayjohn2022-11-091-3/+3
| |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | real_t was mistakenly used in uniform structs causing a mismatch between the GPU uniform and the CPU uniform
* | | | | | | Request redraw in OpenGL3 and mobile renderers when TIME used in shaderclayjohn2022-11-081-0/+11
| | | | | | |
* | | | | | | Rename GPUParticles2D/3D's `trail_length_secs` to `trail_lifetime`Hugo Locurcio2022-11-072-3/+3
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The property already has a "seconds" suffix in the inspector. The "lifetime" term makes it more obvious that the property is specified as time, not a distance in units. The property hint now allows manually entering values greater than 10 seconds. The internal rendering value's default now matches the particles nodes' default.
* | | | | | Add call_deferred() method to Callablekobewi2022-11-041-2/+2
| | | | | |
* | | | | | Collapse three seperate texture storage methods into ↵David Snopek2022-11-032-19/+5
| |_|_|_|/ |/| | | | | | | | | | | | | | render_target_set_override()
* | | | | Merge pull request #67878 from clayjohn/RD-particles-amountRémi Verschelde2022-11-031-1/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Correctly set number of particle dispatches when setting view axis