summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2019-05-30Merge pull request #29236 from clayjohn/gles2-mirrorRémi Verschelde
Separate culling state management from material state in GLES2
2019-05-30Merge pull request #29188 from Calinou/improve-ssao-performance-qualityRémi Verschelde
Improve SSAO performance and quality
2019-05-29Fix -Werror=maybe-uninitialized in GLES2 on release buildsRémi Verschelde
Issue introduced in #28796.
2019-05-28Fix some unincialised variablesqarmin
2019-05-27separate culling state management from materialclayjohn
2019-05-27Merge pull request #29182 from clayjohn/radiance_mapRémi Verschelde
Fix radiance map settings
2019-05-27Merge pull request #29014 from mbrlabs/gles2_precision_fixRémi Verschelde
Use highp precision in the gles2 fragment shader if available
2019-05-26Improve SSAO performance and qualityHugo Locurcio
This decreases the number of samples significantly, leading to a notable performance increase with only a very slight loss in visual quality. This also tweaks the default SSAO settings to use 3×3 blurring, which makes noise patterns much less visible.
2019-05-25fix radiance map settingsclayjohn
2019-05-25Use highp precision for gles2 shader uniforms if not explicitly set.Marcus Brummer
The use of different default precision values (highp in vertex; mediump in fragment) for uniform variables caused the shader program to not link properly on some android devices/emulators.
2019-05-24Merge pull request #29132 from clayjohn/sort_depth_fixRémi Verschelde
Fix "no depth test" and render_priority sorting
2019-05-24Merge pull request #28796 from clayjohn/GLES2-optimizationRémi Verschelde
GLES2: Allow Viewports to render directly to screen
2019-05-23do not compute fog when using unshaded in GLES2clayjohn
2019-05-23fix no depth test and render_priority sortingclayjohn
2019-05-23Merge pull request #29031 from BastiaanOlij/alpha_shadowRémi Verschelde
Implement shadow to opacity
2019-05-21Merge pull request #29041 from hbina/add_constRémi Verschelde
add const to methods that return literals
2019-05-21Implement shadow to opacityBastiaan Olij
2019-05-21added a const keyword for a methods that return constant literal...hbina085
2019-05-19Scale environment lighting correctly in GLES3clayjohn
2019-05-19Fix typos with codespellRémi Verschelde
Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2019-05-14fix lighting bug introduced in clear color changesclayjohn
2019-05-14Merge pull request #27898 from clayjohn/metallic_radianceRémi Verschelde
Added radiance when using clear color
2019-05-13Implement ability to render viewports directly to screenclayjohn
2019-05-13added radiance when using clear color and fixed brdfclayjohn
2019-05-13Merge pull request #27798 from clayjohn/gles2-proj-mat-bugRémi Verschelde
Fixes bug when setting projection matrix in shader GLES2
2019-05-13Merge pull request #28518 from clayjohn/GLES2-MSAARémi Verschelde
Added MSAA to GLES2 backend
2019-05-13Merge pull request #28723 from SouzaGuilherme/fix_shadowsRémi Verschelde
Fix SHADOWS_DISABLED flag in GLES2
2019-05-08Fix texture resource reload bugDaniel Rakos
If a non-imported texture resource file (e.g. DDS) gets updated the editor doesn't reload it. The cause of the problem is two-fold: First, the code of ImageTexture assumes that textures are always imported from an image, but that's not the case for e.g. DDS. This change thus adds code to issue a resource reload in case an image reload is not possible (which is the case for non-imported texture resources). Second, the code is filled with bogus calls to Image::get_image_data_size() to determine the mipmap offset when that should be done using Image::get_image_mipmap_offset(). Previous code literally passed the integer mip level value to Image::get_image_data_size() where that actually expects a boolean. Thus this part of the change might actually solve some other issues as well. To be pedantic, the texture_get_data() funciton of the rasterizer drivers is still quite a mess, as it only ever returns the whole mipchain when GLES_OVER_GL is set (practically only on desktop builds) but this change does not attempt to resolve that.
2019-05-07Fix SHADOWS_DISABLED flag in GLES2Guilherme Souza
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
2019-05-02added MSAA to GLES backendclayjohn
2019-05-02Ignore a warning in _get_socket_error (-Wlogical-op).marxin
drivers/unix/net_socket_posix.cpp: In member function 'NetSocketPosix::NetError NetSocketPosix::_get_socket_error()': drivers/unix/net_socket_posix.cpp:197:22: warning: logical 'or' of equal expressions [-Wlogical-op] 197 | if (errno == EAGAIN || errno == EWOULDBLOCK) | ^ and: modules/mono/utils/string_utils.cpp: In function 'int {anonymous}::sfind(const String&, int)': modules/mono/utils/string_utils.cpp:68:48: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op] found = src[read_pos] == 's' || (c >= '0' || c <= '4'); ~~~~~~~~~^~~~~~~~~~~
2019-04-30Merge pull request #25670 from aqnuep/bake_mode_affect_gi_proveRémi Verschelde
Disable GI probe capturing lights with bake mode disabled
2019-04-30Merge pull request #28530 from akien-mga/scons-prepend-cpppathRémi Verschelde
SCons: Always use env.Prepend for CPPPATH
2019-04-30fixes bug when setting projection matrixclayjohn
2019-04-30Merge pull request #28520 from clayjohn/GLES2-alpha-draw-orderRémi Verschelde
Fixed GLES2 transparency order
2019-04-30SCons: Always use env.Prepend for CPPPATHRémi Verschelde
Include paths are processed from left to right, so we use Prepend to ensure that paths to bundled thirdparty files will have precedence over system paths (e.g. `/usr/include` should have lowest priority).
2019-04-29Fixed GLES2 transparency orderclayjohn
2019-04-29Merge pull request #28431 from SouzaGuilherme/masterRémi Verschelde
Adds flag AMBIENT_LIGHT_DISABLED to GLES2
2019-04-25Adds flag AMBIENT_LIGHT_DISABLED to GLES2Guilherme Souza
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
2019-04-24SCons: Review uses of CCFLAGS, CXXFLAGS and CPPFLAGSRémi Verschelde
Many contributors (me included) did not fully understand what CCFLAGS, CXXFLAGS and CPPFLAGS refer to exactly, and were thus not using them in the way they are intended to be. As per the SCons manual: https://www.scons.org/doc/HTML/scons-user/apa.html - CCFLAGS: General options that are passed to the C and C++ compilers. - CFLAGS: General options that are passed to the C compiler (C only; not C++). - CXXFLAGS: General options that are passed to the C++ compiler. By default, this includes the value of $CCFLAGS, so that setting $CCFLAGS affects both C and C++ compilation. - CPPFLAGS: User-specified C preprocessor options. These will be included in any command that uses the C preprocessor, including not just compilation of C and C++ source files [...], but also [...] Fortran [...] and [...] assembly language source file[s]. TL;DR: Compiler options go to CCFLAGS, unless they must be restricted to either C (CFLAGS) or C++ (CXXFLAGS). Preprocessor defines go to CPPFLAGS.
2019-04-23Disable GI probe capturing lights with bake mode disabledDaniel Rakos
The bake mode property of lights previously didn't affect GI probes. This change makes the GI probe ignore lights that have their bake mode set to disabled.
2019-04-07Add FileAccess::set_unix_permissions for Unix platformsJuan Linietsky
2019-04-07Remove SIGCHILD handle in OS_Unix, interferes with pclose()Juan Linietsky
2019-04-22Merge pull request #27673 from qarmin/small_fixesRémi Verschelde
Small fixes, mostly duplicated code
2019-04-19Added ability for multiple images to be imported as an atlasJuan Linietsky
This adds support for groups in the import system, which point to a single file. Add property hint for saving files in file field
2019-04-15Merge pull request #27967 from clayjohn/fix-mip-bugRémi Verschelde
Fixed bug in computing mip maps from screen texture
2019-04-12fixed bug in mip map sigmaclayjohn
2019-04-10Merge pull request #27815 from Faless/unix/mem_accessHein-Pieter van Braam
Fix jump over uninitialized value in OS Unix/X11
2019-04-09Style: Apply new changes from clang-format 8.0Rémi Verschelde
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
2019-04-09Merge pull request #27806 from JFonS/fix_27690Rémi Verschelde
Fix hint_range for GLES2 shader uniforms