roberto.voxelfarm Posted August 30, 2019 Share Posted August 30, 2019 (edited) I try to do some shaders but I don't found includes or shaders using on the engine. for sample if you open "evaluation_sim_windows_2.9.0.2\data\core\materials\default\mesh\mesh_base.basemat" this include many shaders as.. vertex="core/shaders/mesh/transparent/ambient.shader" fragment="core/shaders/mesh/transparent/ambient.shader" vertex="core/shaders/mesh/transparent/lights.shader" fragment="core/shaders/mesh/transparent/lights.shader"/> vertex="core/shaders/mesh/opacity/deferred.shader" fragment="core/shaders/mesh/opacity/deferred.shader"/> .... But this don't appear on all the SDK, include in the generate project, the folder "core/shaders" don't appear too. Now if you do a search for *.shader you can found some samples, but they have a include that I don't found too. #include <core/shaders/mesh/common/common.h> #ifdef VERTEX #include <core/shaders/mesh/common/vertex.h> #elif FRAGMENT #include <core/shaders/mesh/common/fragment.h> #endif This are into the "core/shader/" folder too /roberto Edited August 30, 2019 by roberto.voxelfarm Link to comment
silent Posted August 31, 2019 Share Posted August 31, 2019 Hi Roberto, Shaders in the Evaluation kit are packed into the UNG archive located in <SDK>/data/core/shaders.ung. Engine can load such archives in runtime and mount as a regular directory. The bad thing is that there is also no Archiver tool available for unpacking UNG files in the Evaluation kit (ung tool and unpacked shaders code available only for the paid licenses). More likely this limitation will be removed in the future releases (2.10 and later). How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts