fede-vaccaro / TerrainEngine-OpenGL

An OpenGL 4 and C++ program which renders a procedural scene.
MIT License
634 stars 88 forks source link

smooth and rounded clouds #11

Closed mrEscen closed 5 years ago

mrEscen commented 5 years ago

I'm only getting smooth and rounded clouds comparing to your screenshots, any idea what's going on?... great project btw

mrEscen commented 5 years ago

Solved the issue: Texture3D texture was not correctly binded. added in file CloudsModel.cpp: glBindTexture(GL_TEXTURE_3D, this->perlinTex); glBindImageTexture(0, this->perlinTex, 0, GL_TRUE, 0, GL_READ_WRITE, GL_RGBA8); and glBindTexture(GL_TEXTURE_3D, this->worley32); glBindImageTexture(0, this->worley32, 0, GL_TRUE, 0, GL_READ_WRITE, GL_RGBA8);

maybe this is also related to issue#3

mrEscen commented 5 years ago

pull request #12