Merge pull request #21569 from JFonS/add_noise_textures

Add SimplexNoise and NoiseTexture as new resources
This commit is contained in:
Rémi Verschelde 2018-09-14 16:57:26 +02:00 committed by GitHub
commit 2aad7f1376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 3450 additions and 2 deletions

View file

@ -1633,16 +1633,17 @@ void GradientTexture::_queue_update() {
if (update_pending)
return;
update_pending = true;
call_deferred("_update");
}
void GradientTexture::_update() {
update_pending = false;
if (gradient.is_null())
return;
update_pending = false;
PoolVector<uint8_t> data;
data.resize(width * 4);
{