diff options
author | Letheed <letheed@users.noreply.github.com> | 2017-08-24 23:35:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 23:35:19 +0200 |
commit | 61d3fb36e8d3e573cf7e6a726229b28a0fca5130 (patch) | |
tree | 1203f52e10fea62db3bf4bc8a205507a9218738c /platform/windows/context_gl_win.cpp | |
parent | f61e8695c9952928d19e6896bc412b638927b25c (diff) |
Allow to disable shadow gradients in Light2D
Currently the shadow gradient can't be disabled and always has a minimum value of 1.
I'm not sure why though, the default value seems to be 0 and the rasterizer checks for 0 [here](https://github.com/godotengine/godot/blob/8fc6bb8f771c520c15320c3b4be561abc648d65d/drivers/gles3/rasterizer_canvas_gles3.cpp#L1284) before enabling it.
Feels like a bug to me, but if there's a reason for that let me know.
As a side effect, this edit effectively changes the default value from 1 to 0 for new projects.
Diffstat (limited to 'platform/windows/context_gl_win.cpp')
0 files changed, 0 insertions, 0 deletions