summaryrefslogtreecommitdiff
path: root/drivers/gles3/shader_compiler_gles3.cpp
AgeCommit message (Collapse)Author
2018-04-13Fixes canvas light shaders.Pieter-Jan Briers
Fixes #16904 Restore more out functionality, fix built-ins. Requested changes, I think?
2018-02-07using TIME in light shader enables uses_fragment_timekarroffel
The GLES3 shader compiler performs certain checks to enable or disable the usage of certain uniform variables (and with that the set-up of UBOs). If the `TIME` variable gets used inside the `vertex` function then the renderer knows that it has to insert that value into the UBO. The same applies to the `fragment` function. The `light` function gets executed inside the fragment shader for every light source that is relevant to the current pixel. If the `TIME` variable gets used in that function then it needs to be present in the fragment-UBO. The check for this was missing, so if a shader uses `TIME` inside `light` but not inside `fragment` then the uniform will not actually be set up.
2018-01-12Fix mat2 alignmentbinbitten
2018-01-12Fix mat2 alignmentJuan Linietsky
2018-01-12Fix uniform alignment, closes #14962Juan Linietsky
2018-01-10Shader Language: Fixes EXTRA_MATRIX undefined.AlmightyScientist
Fixes #15453.
2018-01-06Improve detection of variable writing in shader, fixes #15177Juan Linietsky
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-26Fix sidedness check in material. Also remove SIDE built-in.Juan Linietsky
2017-12-14Fixes built-In "LIGHT" causing fragment compilation errorArnaud PEZEL
Add a rename for shader LIGHT built-in, Fix bug #14537
2017-12-10PropertyEditor: Filter out resource_local_to_sceneRémi Verschelde
This lets the empty "Global" category disappear again. Also silence a debug print.
2017-11-27Added interpolation modifiers to shaderlangScayze
2017-11-14Enable light shaders when light variables are usedGeorge Marques
2017-10-30Merge pull request #12288 from tagcup/expose_viewport_sizeJuan Linietsky
Expose VIEWPORT_SIZE in shader language.
2017-10-27Fix shader compiler typo gl_FrotFaceScayze
2017-10-26Expose VIEWPORT_SIZE in shader language.Ferenc Arn
Fixes #11710.
2017-10-23Revert "Rename Schlick GGX to GGX."Rémi Verschelde
2017-10-21Rename Schlick GGX to GGX.Ferenc Arn
Schlick's approximation and GGX are orthogonal concepts. Furthermore, it's usage so far has been inconsistent: we don't even use it with anisotropic SchlickGGX, and Burley (Disney) diffuse does use it while its name doesn't indicate it. The use of Schlick's approximation in Burley and GGX is an implementation detail and doesn't need to be reflected to the namig.
2017-10-14Fix render mode specular schlick ggxHiroshi Ogawa
2017-09-29Ability to set a custom FOV makes it possible to use sky on orthogonal view. ↵Juan Linietsky
Closes #9186
2017-09-27Fixes to light shaders, should work now..Juan Linietsky
2017-09-23Added light affect parameter to baked AOJuan Linietsky
2017-09-21Added proximity and distance fade to SpatialMaterialJuan Linietsky
2017-09-13Style: Apply clang-format to @reduz's changesRémi Verschelde
[ci skip]
2017-09-05Added support for for, break and continue. Closes #10560, closes #10661Juan Linietsky
2017-09-03Added transmission shader parameter.Juan Linietsky
2017-08-29removed DISCARD built in variable, replaced by actual discard GLSL ↵Juan Linietsky
instruction, fixes #9677
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-08-Restored Sprite3D to working function, fixes #2061, fixes #9738Juan Linietsky
-Restored an alpha scissor property in Material
2017-07-08Some adjustments to toon material to make it more flexibleJuan Linietsky
Ability to also disable specular
2017-07-08Added triplanar mapping, toon mode, and more specular modes for materials. ↵Juan Linietsky
Added multipass support for materials.
2017-07-08-Added triplanar mapping modesJuan Linietsky
-Some fixes to shader lang
2017-06-26-Fixed SCREEN_TEXTURE and other related 2D shader parameters.Juan Linietsky
-Fixded BackBuffercopy object
2017-06-23Small fixes required to get platformer to work.Juan Linietsky
Added back CanvasItemMaterial
2017-06-15Add AT_LIGHT_PASS builtin to canvas shadersPedro J. Estébanez
This one allows for complex shaders paired with a simple lighting shader to skip code that would otherwise be pointlessly (and wastefully) run during the light pass. Depending on your game (number of items and lights), this can yield some performance gain.
2017-06-07-Added proper access to depth texture from shaderJuan Linietsky
-Split Mesh into Mesh (abstrat class) and ArrayMesh, to allow to proper mesh primitives, as well as streamable meshes in the future.
2017-06-05-working SCREEN_TEXTURE, SCREEN_UV shader variablesJuan Linietsky
-Added refraction support for default material -Enabled BCS adjustments, as well as color correction.
2017-06-04Added depth texture support (using parallax) to default material.Juan Linietsky
2017-06-03subsurface scattering is fixed and working againJuan Linietsky
2017-06-01Rework shading modes and change location of light shaderJuan Linietsky
2017-05-31rewritten PBR implementation to make it friendlier with BlenderJuan Linietsky
2017-05-17fix varying in 3.0 shaderPanPan
2017-04-23Fix property warnings and hide some debug printsRémi Verschelde
"ALL IS GOOD" was a lie. In particular, removes verbose "path not recognized" false positive. The actual logic is to (somewhat naively) check all ResourceFormatLoaders and to pick the first good match, so no need to warn about the formats that do not match the type hint.
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-04-06New particle system, mostly working, some small features missing.Juan Linietsky
2017-03-08Map POSITION to gl_FragCoord.xy for 2D shadersPedro J. Estébanez
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
2017-03-05Add a bunch of missing Godot headers in own filesRémi Verschelde