Age | Commit message (Collapse) | Author |
|
|
|
Keeping track of discard
|
|
Shader compilation now keeps track of the discard key word.
Previously only variables were monitored. But discard, which needs
special treatment in some cases, went unnoticed by the compiler as
discard is not a variable but a flow control.
This commit adds monitoring for discard.
|
|
|
|
This commit makes operator[] on Vector const and adds a write proxy to it. From
now on writes to Vectors need to happen through the .write proxy. So for
instance:
Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;
Failing to use the .write proxy will cause a compilation error.
In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.
_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
|
|
Note that gl_InstanceID is not supported in OpenGL ES 2.0,
so in the gles2 backend we assign it to 0.
Also clean up some duplicates/commented out code.
Fixes #20088.
|
|
|
|
|
|
Added flag on SpatialMaterial to disable shadows
|
|
Fixes #16904
Restore more out functionality, fix built-ins.
Requested changes, I think?
|
|
|
|
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.
|
|
|
|
|
|
|
|
Fixes #15453.
|
|
|
|
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.
|
|
Happy new year to the wonderful Godot community!
|
|
|
|
Add a rename for shader LIGHT built-in, Fix bug #14537
|
|
This lets the empty "Global" category disappear again.
Also silence a debug print.
|
|
|
|
|
|
Expose VIEWPORT_SIZE in shader language.
|
|
|
|
Fixes #11710.
|
|
|
|
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.
|
|
|
|
Closes #9186
|
|
|
|
|
|
|
|
[ci skip]
|
|
|
|
|
|
instruction, fixes #9677
|
|
|
|
|
|
-Restored an alpha scissor property in Material
|
|
Ability to also disable specular
|
|
Added multipass support for materials.
|
|
-Some fixes to shader lang
|
|
-Fixded BackBuffercopy object
|
|
Added back CanvasItemMaterial
|
|
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.
|
|
-Split Mesh into Mesh (abstrat class) and ArrayMesh, to allow to proper mesh primitives, as well as streamable meshes in the future.
|
|
-Added refraction support for default material
-Enabled BCS adjustments, as well as color correction.
|
|
|