heyx3 / GPUNoiseForUnity

A Unity plugin for generating noise on the GPU for use in the editor.
Other
109 stars 17 forks source link

Shader export fix for duplicate node definitions #6

Closed Bamboy closed 7 years ago

Bamboy commented 7 years ago

Fixes issue: https://github.com/heyx3/GPUNoiseForUnity/issues/1

heyx3 commented 7 years ago

Instead of a hard-coded check for redefinition of a specific float variable, could we just use a HashSet containing all nodes that have already been emitted?

Bamboy commented 7 years ago

Go for it.

heyx3 commented 7 years ago

Fixed with 7cd971f60c38d6433885a473742e7f357302312d