aboutsummaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/material.glsl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Dead code tells no talesRémi Verschelde2017-08-271-1326/+0
|
* Style: Fix whole-line commented codeRémi Verschelde2017-01-141-5/+5
| | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* Limit directional shadow draw distance, fixes #559, optimization (#1991)mookiexl2016-10-031-0/+12
| | | | * Shadow fadeout exponent hardcoded for now, should be user configurable. * optimization - skip shadows outside visible range
* Merge pull request #6414 from RandomShaper/improve-shader-shadowRémi Verschelde2016-09-171-2/+2
|\ | | | | Expose additional light/shadow properties to canvas item shaders
| * Rename misleading definePedro J. Estébanez2016-09-071-2/+2
| | | | | | | | The macro USE_LIGHT_SHADOW_COLOR actually was being defined when the shader used SHADOW (the output shadow color), not the shadow color set for the light so it's better named USE_OUTPUT_SHADOW_COLOR. In 3D there's not that difference but renaming as well for consistency.
* | Fix drivers coding for WinRTGeorge Marques2016-09-031-0/+4
|/ | | | | | | - Add a proper function to retrieve IP addresses. - Solve issues with Windows FileAccess and DirAccess to use the same code for WinRT. - Add patches to the GLES2 rasterizer to workaround ANGLE issues.
* Ability to colourize baked lighting in real time.Saracen2016-02-061-1/+9
|
* New shader feature: change the colour of shadows on a per-material basis.Saracen2015-11-081-0/+8
| | | | | Conflicts: drivers/gles2/shader_compiler_gles2.cpp
* -begin work on unidirectional collision detectionJuan Linietsky2015-01-131-0/+1
| | | | | -fixed performance issue in new 2D engine -texscreen() working in shader 2D
* Small batch of fixesJuan Linietsky2014-12-151-1/+1
| | | | | | | -=-=-=-=-=-=-=-=-=-= -Fixed looping error in AudioStreamResampled -winrt port progress -fixes in material in ambient light
* Batch of BugfixesJuan Linietsky2014-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | -=-=-=-=-=-=-=-=- -Fixed Export UV XForm (should work now). #923 -Fixed enforcement of limits in property editor. #919 -Fixed long-standing bug of export editings in script inheritance. #914, #859, #756 -Fixed horrible error reporting in shader language. #912 -Added kinematic collision with plane (please test well). #911 -Fixed double animation track insert when using 2D rigs. #904 -VKey updates offset parameter in sprite edition. #901 -Do not allow anymore a script to preload itself. (does not fix #899, but narrows it down) -Avoid connection editor from overriding selected text. #897 -Fixed timer autostart. #876 -Fixed collision layers in 3D physics. #872 -Improved operators in shader #857 -Fixed ambient lighting bug #834 -Avoid editor from processing gamepad input #813 -Added not keyword #752 Please test!
* -Much improvement to baked light bakerJuan Linietsky2014-10-271-8/+36
| | | | | | | -Fixed many bugs in stretch mode -Fixes to camera project and unproject as consequence of the above -added setget to script (documented in script doc) -more fixes to collada exporter for blender
* FixesJuan Linietsky2014-10-141-1/+4
| | | | | | | | | -=-=- -Fixed normalmap depth parameter -Fixes to DirAccess on Windows -Double click on resource dock will open them -Fixes to doc generator (should make github wiki on class list more up to date)
* fix view dependent problem in normal mappingromulox_x2014-10-141-1/+1
|
* ColladaJuan Linietsky2014-10-141-0/+9
| | | | | | | | | | | | -=-=-=- -Fixed some DAE import & export bugs -Changed Collada exporter to use the mesh loops API -Added tangent export to Collada exporter -Added triangulation option to Collada exporter -Changed a little how normalmaps are handled in shader. Not sure if it's working properly, be careful. -Fixed some strange bug with kinematic bodies #776 -Fix release compilaiton issues #782
* Little BitsJuan Linietsky2014-10-121-0/+10
| | | | | | | | | | | | | | | | | | | -=-=-=-=-=- -fix duplicate function bug when creating script callback in editor -fix bug where hiding lights does not work -fix 2D audio listener bug (romulox_x reported) -fix exported properties with inheritance bug -fix timer autostart (make it not work on editor) -reactivate first camara found if viewport runs out of active camera -option to hide gizmos in viewport -changed skeleton gizmo because it sucks -Make convex shapes using CollisionShape visible (use quickhull class) -fix up menu when editing a mesh, to export collision, navmesh, convex, etc. from it. -make a menu option to show SRGB in 3D editor views by default -make option to edit default light direction in viewport settings -make option to edit default ambient light in viewport settings -make software conversion of linear->RGB if hardware support not found
* CollisionPolygon (3D)Juan Linietsky2014-09-161-0/+2
| | | | Workaround for round() on PC.
* Little BitsJuan Linietsky2014-08-141-3/+83
| | | | | | | | -=-=-=-=-=- -Fixed small bugs all around -Added ability to show/hide entire sections of the spatial (3D) tree -WIP new vehicle (not ready yet) based on Bullet
* Fixed Bugs & Joypad in AndroidJuan Linietsky2014-07-021-5/+25
| | | | | | | | ================================ -resolved many graphical glitches with multiple lights in GLES2 render -fixes and WIP apk expansion -joystick support for Android by Ariel
* Bug FixesJuan Linietsky2014-06-291-0/+4
| | | | | | | | | | -=-=-=-=- -Documentation now shows overridable theme values (though this needs to be documented). -Detect when object transform is flipped and flip normals too. -TileMap can specify bounce and friction for collision. -Removed limit of 4 lights per object -Added is_hovered() to buttons.
* Misc FixesJuan Linietsky2014-06-271-21/+39
| | | | | | | | | | | | ========== -NOTIFICATION_WM_QUIT fixed on android (seems tha way this is reported changed in newer sdk) -WIP implementation of APK Expansion APIs for publishing games larger than 50mb in Play Store -Feaures in the new tutorials are all present in the sourcecode -This (hopefully) should get rid of the animation list order getting corrupted -Improved 3D Scene Importer (Skeletons, Animations and other stuff were not being merged). Anything missing? -In code editor, the automatic syntax checker will only use file_exists() to check preload() else it might freeze the editor too much while typing if the preload is a big resource -Fixed bugs in PolygonPathFinder, stil pending to do a node and a demo
* FineTune HDR and Other StuffJuan Linietsky2014-06-171-1/+2
| | | | | | | | -=-=-=-=-=-=-=-=-=-=-=-=-=- -More parameters to ESM shadows -LightMap Octree now can bake to "hdr" (use HDR8 for now) -New resource PolygonPathFinder, polygon based pathfinder using A-star algorithm. (will add nodes to use it more easily soon)
* More 3D WorkJuan Linietsky2014-06-161-4/+57
| | | | | | | | -=-=-=-=-=- -ESM Shadow Mapping for softer and less glitchy shadows -HDR Pipeline (convert to Linear on texture import, convert to SRGB at the end) -Fix to xml parse bug
* Light Baker!Juan Linietsky2014-06-111-1/+88
| | | | | | -=-=-=-=-=-= -Support for lightmap baker, have fun figuring out how it works before tutorial is published.
* More 3D ImprovementsJuan Linietsky2014-05-291-4/+16
| | | | | | | | | | | | | -=-=-=-=-=-=-=-=-=-= -Sprite3D and AnimatedSprite3D support. -Opaque pre-pass works, is compatible with shadows -Improved shadow map rendering (can differentiate between plain opaque and opaque with shaders/discard/etc) -Added option to use alpha discard in FixedMaterial -Improved Glow FX, many more options (three modes, Additive, Screen and SoftLight), strength and scale -Ability for Background (image or cubemap) to send to glow buffer -Dumb Deploy of clients now actually works in Android -Many Many rendering fixes, 3D is much more usable now.
* Lots of 3D improvements:Juan Linietsky2014-05-041-7/+98
| | | | | | | | | | | | | -Object Manipulator Gizmo keeps proper scale in all windows and projections, (configurable on settings too). -Manipulator gizmos for other objects (camera, shapes, etc) massively improved and bug-fixed. -Manipulator gizmos are different for edited object and other objects. -Properly highlight manipulator gizmo handles when hovered. -Fixed bugs in fragment program when using more than 1 light together. -Reload png/jpg files automatically in editor if edited externally. -Added 4-stages Parallel Split Shadow Mapping, to improve shadow quality in large scenarios -Added PCF13 to improve smoothness of shadow borders -General optimization of directional light shadow mapping for Orthogonal,PSM and PSSM. -Fixed normal mapping when importing DAE files, works nicely now.
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+875