ted.mcclung Posted October 29, 2013 Posted October 29, 2013 Is there a way to write my own shaders for Unigine? From what I can tell, the material system looks like it's xml files that are basically "turn this on, turn this off", and everything uses built in shaders only. The documentation only briefly approaches building custom materials, and I haven't seen anything on using a completely new shader written in something like hlsl. Is there a way to do this?
ulf.schroeter Posted October 29, 2013 Posted October 29, 2013 Yes it is possible, but not comfortable and well documented. Please use forum search for older posts on same topic.
steve3d Posted October 31, 2013 Posted October 31, 2013 well, we all waiting the shader documentation for years. so if you really want to and need a custom shader, you will have to research existing shaders first.
unclebob Posted November 8, 2013 Posted November 8, 2013 Hi Ted, Sorry for late reply. It's really depend on what you want to do. Basically, you have to write shaders for passes according to the engine's rendering sequence (https://developer.unigine.com/en/docs/1.0/principles/render/sequence/). Please take a look at samples\shaders folder, it contains custom shader samples for both postprocess and surface materials.
Recommended Posts