Jump to content

Where I can found core/shaders and the includes for shaders too


photo

Recommended Posts

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 by roberto.voxelfarm
Link to comment

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:

Link to comment
×
×
  • Create New...