Jump to content

TF2 shader


saindd

Recommended Posts

Has anyone attempted something similar to this? http://wiki.unity3d.com/index.php/TeamFortress2Shader


How easy to edit are T3D shaders? Are they GLSL?

 

If you're using D3D, they're HLSL, if you're using OpenGL, they're GLSL.


As for utilizing the shaders themselves you would write a CustomMaterial that points to the shader files in question. Then in your models and the like just utilize the custom material.


For examples of CustomMaterials, you can look at the water classes or similar. They use specific materials and shaders just for them.

Link to comment
Share on other sites

For custom materials, no.


You would just have a HLSL and GLSL. If you're attempting to do specifically optimized shaders for certain platforms/configurations, it'd be up to you to have the different fallbacks set up.


Unless you're trying to target mobile or whatnot though, one well written shader should work on most platforms without needing to hyper-optimize everything.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...