Difference between revisions of "CD7FE87A"

From SimsWiki
Jump to: navigation, search
(more infos to add...)
m
Line 3: Line 3:
 
Material Shaders
 
Material Shaders
  
This isnt really a spec per se. But more of an idea of their purpose.
+
This is not really a spec per se. But more of an idea of their purpose.
  
Generally speaking, they're just low level commands to the video card and assignments which the TXMT's can call on.
+
Generally speaking, they're just low level commands to the video card and assignments which the [http://www.sims2wiki.info/wiki.php?title=TXMT TXMT] files can call on.
  
 
There're a few kinds of material shaders.
 
There're a few kinds of material shaders.
Line 13: Line 13:
 
"wall_Shaders for Sims 2 walls" actually has defintions about different sorts of "walls" such as the poolwall surface, wallmask, etc...
 
"wall_Shaders for Sims 2 walls" actually has defintions about different sorts of "walls" such as the poolwall surface, wallmask, etc...
  
TXMT files have lists of properties and type. Those properties and types inherit function(s) from the definitions in Material Shader.
+
[http://www.sims2wiki.info/wiki.php?title=TXMT TXMT] files have lists of properties and type. Those properties and types inherit function(s) from the definitions in Material Shader.
  
 
For a particular material type, whether a material type of a txmt file can over-ride the preset values in matShad depends on whether the corresponding definition(s) in matShad has a sign "$" in front of the corresponding parameter(s).  That sign is to direct the game engine to take the local value(s) from a particular txmt file.
 
For a particular material type, whether a material type of a txmt file can over-ride the preset values in matShad depends on whether the corresponding definition(s) in matShad has a sign "$" in front of the corresponding parameter(s).  That sign is to direct the game engine to take the local value(s) from a particular txmt file.

Revision as of 05:59, 19 March 2007

This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/MATSHAD

Material Shaders

This is not really a spec per se. But more of an idea of their purpose.

Generally speaking, they're just low level commands to the video card and assignments which the TXMT files can call on.

There're a few kinds of material shaders. These shaders can be VS(Vertex Shader), PS(Pixel Shader), just a simple material definition (just like a txmt file), TOC (Table of Contents Tree), and others. For instance, "pixelshaderwalls_PS2WallRendering" actually has definitions about the graphical structure(s) of the "wall" we see in-game. "wall_Shaders for Sims 2 walls" actually has defintions about different sorts of "walls" such as the poolwall surface, wallmask, etc...

TXMT files have lists of properties and type. Those properties and types inherit function(s) from the definitions in Material Shader.

For a particular material type, whether a material type of a txmt file can over-ride the preset values in matShad depends on whether the corresponding definition(s) in matShad has a sign "$" in front of the corresponding parameter(s). That sign is to direct the game engine to take the local value(s) from a particular txmt file.

The script is custom design by maxis but is often much like assembly code.

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox