Shandy6661 Posted March 27, 2015 Posted March 27, 2015 i have some .hlsl files that i get from different engine, the question is "is it can be used by T3D?"Thanksshandy. Quote
J0linar Posted March 27, 2015 Posted March 27, 2015 hlsl files are shaders, to be more specific directX Shaders and no you can not simply take hlsl files and expect those to work in T3D.You have to either rewrite those to work like expected or write new hlsl shaders based on those.And at the end you have to create scripts to be able to use your shaders,take a look at thishttps://github.com/GarageGames/Torque3D/commit/351d5f08e917f55f46b22369bb128c128d9c45dfit might answer other question you might get. Quote
Shandy6661 Posted March 27, 2015 Author Posted March 27, 2015 you meant "Rewrite those" is the TorqueScript? i.e "Vignette.cs"? Quote
Azaezel Posted March 27, 2015 Posted March 27, 2015 more like 'track down what variables are used and convert them to the ones sent by the engine'. Though that *can* include variables set by script in the case of post effects, more often than not, it'll be more a case of source entries. As an example:https://github.com/GarageGames/Torque3D/search?p=1&q=eyePosWorld&type=Code&utf8=%E2%9C%93 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.