patriciogonzalezvivo / lygia_examples

Other
106 stars 7 forks source link

example 07_doubleBuffer #2

Closed furmanlukasz closed 2 years ago

furmanlukasz commented 2 years ago

Hi. I am facing this error when trying to load make 07_doubleBuffer GlslViewer 3.0.6 macOS Monterey 12.6

Found error while compiling fragment shader
ERROR: 0:901: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:906: Use of undeclared identifier 'value'
ERROR: 0:910: Use of undeclared identifier 'value'
ERROR: 0:915: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:920: Use of undeclared identifier 'value'
ERROR: 0:924: Use of undeclared identifier 'value'
900     // Initial values
901     FBM_NOISE_TYPE value = FBM_VALUE_INITIAL;
902     float amplitud = FBM_AMPLITUD_INITIAL;
Found error while compiling fragment shader
ERROR: 0:901: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:906: Use of undeclared identifier 'value'
ERROR: 0:910: Use of undeclared identifier 'value'
ERROR: 0:915: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:920: Use of undeclared identifier 'value'
ERROR: 0:924: Use of undeclared identifier 'value'
900     // Initial values
901     FBM_NOISE_TYPE value = FBM_VALUE_INITIAL;
902     float amplitud = FBM_AMPLITUD_INITIAL;
Found error while compiling fragment shader
ERROR: 0:901: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:906: Use of undeclared identifier 'value'
ERROR: 0:910: Use of undeclared identifier 'value'
ERROR: 0:915: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:920: Use of undeclared identifier 'value'
ERROR: 0:924: Use of undeclared identifier 'value'
900     // Initial values
901     FBM_NOISE_TYPE value = FBM_VALUE_INITIAL;
902     float amplitud = FBM_AMPLITUD_INITIAL;
Found error while compiling fragment shader
ERROR: 0:901: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:906: Use of undeclared identifier 'value'
ERROR: 0:910: Use of undeclared identifier 'value'
ERROR: 0:915: Incompatible types in initialization (and no available implicit conversion)
ERROR: 0:920: Use of undeclared identifier 'value'
ERROR: 0:924: Use of undeclared identifier 'value'
900     // Initial values
901     FBM_NOISE_TYPE value = FBM_VALUE_INITIAL;
902     float amplitud = FBM_AMPLITUD_INITIAL;
patriciogonzalezvivo commented 2 years ago

Hi @furmanlukasz! I don't think this is the correct repo. If I understand correctly this is the example from yesterday's workshop. In it please try:

git pull
git submodule update
cd lygia
git checkout main
git pull

To be sure you have the latest of everything

furmanlukasz commented 2 years ago

Oh, you right - I'm sorry, I mistook the repository. I should write in the repos from examples from workshop. After updating the examples everything is working. Thanks for the quick reply, as usual :)