Difference between revisions of "CD7FE87A"

From SimsWiki
Jump to: navigation, search
m (Fixed link to old wiki and added category)
(more infos to add...)
Line 7: Line 7:
 
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 TXMT's can call on.
  
TXMT's have lists of properties. Those properties inherit function from the Material Shader definitions.  
+
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.
 
The script is custom design by maxis but is often much like assembly code.

Revision as of 00:51, 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 isnt 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.

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