Shandy6661 Posted March 27, 2015 Share 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 Link to comment Share on other sites More sharing options...
J0linar Posted March 27, 2015 Share 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 Link to comment Share on other sites More sharing options...
Shandy6661 Posted March 27, 2015 Author Share Posted March 27, 2015 you meant "Rewrite those" is the TorqueScript? i.e "Vignette.cs"? Quote Link to comment Share on other sites More sharing options...
Azaezel Posted March 27, 2015 Share 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 Link to comment Share on other sites More sharing options...
Shandy6661 Posted March 28, 2015 Author Share Posted March 28, 2015 thanks :) Quote Link to comment Share on other sites More sharing options...
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.