Shader examples: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This page contains some example shader resources to try in 1.1. If you are looking to make your own, please be sure to read about the [[Shader|shader element]] as well. | |||
<br> | <br> | ||
__TOC__ | __TOC__ | ||
Line 5: | Line 5: | ||
[[Image:RoadShineScreen.jpg|200px|thumb|left|Road shine]] | [[Image:RoadShineScreen.jpg|200px|thumb|left|Road shine]] | ||
<table border=0><tr><td valign=top height=170> | <table border=0><tr><td valign=top height=170> | ||
[http://nightly.mtasa.com/files/shaders/shader_roadshine.zip Download shader_roadshine.zip] | [http://nightly.mtasa.com/files/shaders/shader_roadshine.zip Download shader_roadshine.zip] ''Requires Shader Model 2 graphics card'' | ||
<br><br> | <br><br> | ||
This resource creates a light reflection effect on the ground (looks best when moving). | This resource creates a light reflection effect on the ground (looks best when moving). | ||
Line 20: | Line 20: | ||
[[Image:RoadShine2Screen.jpg|200px|thumb|left|Road shine 2]] | [[Image:RoadShine2Screen.jpg|200px|thumb|left|Road shine 2]] | ||
<table border=0><tr><td valign=top height=170> | <table border=0><tr><td valign=top height=170> | ||
[http://nightly.mtasa.com/files/shaders/shader_roadshine2.zip Download shader_roadshine2.zip] | [http://nightly.mtasa.com/files/shaders/shader_roadshine2.zip Download shader_roadshine2.zip] ''Requires Shader Model 2 graphics card'' | ||
<br><br> | <br><br> | ||
Bit more complicated than the first Road shine, as it tracks the sun or moon to calculate the position of the highlight. | Bit more complicated than the first Road shine, as it tracks the sun or moon to calculate the position of the highlight. | ||
Line 42: | Line 42: | ||
<br><br> | <br><br> | ||
This resource controls a texture's UVs using Lua. It shows that anything is possible if you can imagine it. | This resource controls a texture's UVs using Lua. It shows that anything is possible if you can imagine it. | ||
</td></tr></table> | |||
==Ped morph== | |||
[[Image:PedMorphScreen.jpg|200px|thumb|left|Ped morph]] | |||
<table border=0><tr><td valign=top height=170> | |||
[http://nightly.mtasa.com/files/shaders/shader_ped_morph.zip Download shader_ped_morph.zip] ''Requires Shader Model 2 graphics card'' | |||
<br><br> | |||
This resource uses a vertex shader to modify the geometry of a ped model as it is rendered. | |||
</td></tr></table> | </td></tr></table> |
Revision as of 23:29, 5 July 2011
This page contains some example shader resources to try in 1.1. If you are looking to make your own, please be sure to read about the shader element as well.
Road shine
Download shader_roadshine.zip Requires Shader Model 2 graphics card
int CUSTOMFLAGS < string createNormals = "yes"; >; Surface normals are not usually present in the ground and building models, but are useful for creating lighting effects such as these. |
Road shine 2
Download shader_roadshine2.zip Requires Shader Model 2 graphics card
|
UV scroll
Download shader_uv_scroll.zip
|
UV scripted
Download shader_uv_scripted.zip
|
Ped morph
Download shader_ped_morph.zip Requires Shader Model 2 graphics card
|