mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:28:59 +02:00
Fix procedurals
This commit is contained in:
parent
e6fb2a9e15
commit
a0ef0c0b13
1 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,11 @@ void Procedural::setProceduralData(const ProceduralData& proceduralData) {
|
|||
_dirty = true;
|
||||
_enabled = false;
|
||||
|
||||
if (proceduralData.version != _data.version ) {
|
||||
_data.version = proceduralData.version;
|
||||
_shaderDirty = true;
|
||||
}
|
||||
|
||||
if (proceduralData.uniforms != _data.uniforms) {
|
||||
_data.uniforms = proceduralData.uniforms;
|
||||
_uniformsDirty = true;
|
||||
|
|
Loading…
Reference in a new issue