I don't need to test my programs. I have an error-correcting modem.

Difference between revisions of "Legacy:Material"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m
Line 11: Line 11:
 
===Editable===
 
===Editable===
 
; Material FallbackMaterial : A fallback material.  Automatically used by the engine if the user's video card cannot cope with a complex shader construction used in this material.
 
; Material FallbackMaterial : A fallback material.  Automatically used by the engine if the user's video card cannot cope with a complex shader construction used in this material.
; ESurfaceTypes SurfaceType : Type of surface (see <code>ESurfaceTypes</code> enum below).
+
; ESurfaceTypes SurfaceType : Type of surface, see [[Legacy:ESurfaceTypes|ESurfaceTypes]].
  
 
===Internal===
 
===Internal===
; Material DefaultMaterial : 
 
The default material goes by the intuitive name DefaultTexture. [[Image:Legacy_DefaultTexture.jpeg|center|The default texture.]]
 
  
 +
[[Image:Legacy_DefaultTexture.jpeg|right|The default texture.]]
 +
; Material DefaultMaterial : The default material goes by the intuitive name DefaultMaterial.
 
; bool UseFallback (transient, const) : Render device should use the fallback.
 
; bool UseFallback (transient, const) : Render device should use the fallback.
 
; bool Validated (transient, const) : Material has been validated as renderable.
 
; bool Validated (transient, const) : Material has been validated as renderable.
 
==Enums==
 
* [[Legacy:ESurfaceTypes|ESurfaceTypes]]
 
  
 
==Methods==
 
==Methods==
Line 33: Line 30:
 
     +-[[Legacy:Combiner|Combiner]]
 
     +-[[Legacy:Combiner|Combiner]]
 
     +-[[Legacy:Modifier|Modifier]]
 
     +-[[Legacy:Modifier|Modifier]]
     |     +-[[Legacy:ColorModifier|ColorModifier]]
+
     |   +-[[Legacy:ColorModifier|ColorModifier]]
     |     +-[[Legacy:FinalBlend|FinalBlend]]
+
     |   +-[[Legacy:FinalBlend|FinalBlend]]
     |     +-[[Legacy:MaterialSequence|MaterialSequence]]
+
     |   +-[[Legacy:MaterialSequence|MaterialSequence]]
     |     +-[[Legacy:MaterialSwitch|MaterialSwitch]]
+
     |   +-[[Legacy:MaterialSwitch|MaterialSwitch]]
     |     +-[[Legacy:OpacityModifier|OpacityModifier]]
+
     |   +-[[Legacy:OpacityModifier|OpacityModifier]]
     |     +-[[Legacy:TexModifier|TexModifier]]
+
     |   +-[[Legacy:TexModifier|TexModifier]]
     |           +-[[Legacy:TexCoordSource|TexCoordSource]]
+
     |       +-[[Legacy:TexCoordSource|TexCoordSource]]
     |           +-[[Legacy:TexEnvMap|TexEnvMap]]
+
     |       +-[[Legacy:TexEnvMap|TexEnvMap]]
     |           +-[[Legacy:TexMatrix|TexMatrix]]
+
     |       +-[[Legacy:TexMatrix|TexMatrix]]
     |           +-[[Legacy:TexOscillator|TexOscillator]]
+
     |       +-[[Legacy:TexOscillator|TexOscillator]]
     |           |     +-[[Legacy:TexOscillatorTriggered|TexOscillatorTriggered]]
+
     |       |   +-[[Legacy:TexOscillatorTriggered|TexOscillatorTriggered]]
     |           +-[[Legacy:TexPanner|TexPanner]]
+
     |       +-[[Legacy:TexPanner|TexPanner]]
     |           |     +-[[Legacy:TexPannerTriggered|TexPannerTriggered]]
+
     |       |   +-[[Legacy:TexPannerTriggered|TexPannerTriggered]]
     |           +-[[Legacy:TexRotator|TexRotator]]
+
     |       +-[[Legacy:TexRotator|TexRotator]]
     |           +-[[Legacy:TexScaler|TexScaler]]
+
     |       +-[[Legacy:TexScaler|TexScaler]]
 
     +-[[Legacy:RenderedMaterial|RenderedMaterial]]
 
     +-[[Legacy:RenderedMaterial|RenderedMaterial]]
          +-[[Legacy:BitmapMaterial|BitmapMaterial]]
+
        +-[[Legacy:BitmapMaterial|BitmapMaterial]]
          |     +-[[Legacy:ScriptedTexture|ScriptedTexture]]
+
        |   +-[[Legacy:ScriptedTexture|ScriptedTexture]]
          |     +-[[Legacy:ShadowBitmapMaterial|ShadowBitmapMaterial]]
+
        |   +-[[Legacy:ShadowBitmapMaterial|ShadowBitmapMaterial]]
          |     +-[[Legacy:Texture|Texture]]
+
        |   +-[[Legacy:Texture|Texture]]
          |           +-[[Legacy:Cubemap|Cubemap]]
+
        |       +-[[Legacy:Cubemap|Cubemap]]
          |           +-[[Legacy:FractalTexture|FractalTexture]]
+
        |       +-[[Legacy:FractalTexture|FractalTexture]]
           |                +-[[Legacy:FireTexture|FireTexture]]
+
        |           +-[[Legacy:FireTexture|FireTexture]]
          |                 +-[[Legacy:IceTexture|IceTexture]]
+
        |           +-[[Legacy:IceTexture|IceTexture]]
          |                 +-[[Legacy:WaterTexture|WaterTexture]]
+
        |           +-[[Legacy:WaterTexture|WaterTexture]]
          |                       +-[[Legacy:FluidTexture|FluidTexture]]
+
        |               +-[[Legacy:FluidTexture|FluidTexture]]
          |                       +-[[Legacy:WaveTexture|WaveTexture]]
+
        |               +-[[Legacy:WaveTexture|WaveTexture]]
          |                       +-[[Legacy:WetTexture|WetTexture]]
+
        |               +-[[Legacy:WetTexture|WetTexture]]
          +-[[Legacy:ConstantMaterial|ConstantMaterial]]
+
        +-[[Legacy:ConstantMaterial|ConstantMaterial]]
          +-[[Legacy:ParticleMaterial|ParticleMaterial]]
+
        |  +-[[Legacy:ConstantColor|ConstantColor]]
          +-[[Legacy:ProjectorMaterial|ProjectorMaterial]]
+
        |  +-[[Legacy:FadeColor|FadeColor]]
          +-[[Legacy:Shader|Shader]]
+
        +-[[Legacy:ParticleMaterial|ParticleMaterial]]
          +-[[Legacy:TerrainMaterial|TerrainMaterial]]
+
        +-[[Legacy:ProjectorMaterial|ProjectorMaterial]]
          +-[[Legacy:VertexColor|VertexColor]]
+
        +-[[Legacy:Shader|Shader]]
 +
        +-[[Legacy:TerrainMaterial|TerrainMaterial]]
 +
        +-[[Legacy:VertexColor|VertexColor]]
  
 
==Related Topics ==
 
==Related Topics ==
 
* [[Legacy:Texture Topics|Texture Topics]]
 
* [[Legacy:Texture Topics|Texture Topics]]
 +
* [[udn2:MaterialTutorial]]
  
 
[[Category:Legacy Class (UT2003)|{{PAGENAME}}]]
 
[[Category:Legacy Class (UT2003)|{{PAGENAME}}]]
 +
[[Category:Legacy Class Tree|{{PAGENAME}}]]

Revision as of 13:55, 15 March 2004

UT2003 :: Object >> Material (Package: Engine)

The superclass of all texture-like objects that can be applied to surfaces or drawn on a Canvas.

Any Material object can be created at runtime and used by script code (whereas in UT the attempt to do so crashed the game). You can, however, set up a Material's properties only once per frame before the Material is drawn the first time that frame; subsequent property changes remain uneffective.

See also: Material Context Menu, Topics On Materials topic page

Properties

Editable

Material FallbackMaterial 
A fallback material. Automatically used by the engine if the user's video card cannot cope with a complex shader construction used in this material.
ESurfaceTypes SurfaceType 
Type of surface, see ESurfaceTypes.

Internal

The default texture.
Material DefaultMaterial 
The default material goes by the intuitive name DefaultMaterial.
bool UseFallback (transient, const) 
Render device should use the fallback.
bool Validated (transient, const) 
Material has been validated as renderable.

Methods

Reset ( ) 
Resets the material. The material class's Reset method only calls the FallbackMaterial's Reset method.
Trigger (Actor Other, Actor EventInstigator) 
Triggers the material. The material class's Trigger method method only triggers the FallbackMaterial.
int MaterialUSize ( ) [native] 
Returns the width of the material.
int MaterialVSize ( ) [native] 
Returns the height of the material.

Known Subclasses

Material
   +-Combiner
   +-Modifier
   |   +-ColorModifier
   |   +-FinalBlend
   |   +-MaterialSequence
   |   +-MaterialSwitch
   |   +-OpacityModifier
   |   +-TexModifier
   |       +-TexCoordSource
   |       +-TexEnvMap
   |       +-TexMatrix
   |       +-TexOscillator
   |       |   +-TexOscillatorTriggered
   |       +-TexPanner
   |       |   +-TexPannerTriggered
   |       +-TexRotator
   |       +-TexScaler
   +-RenderedMaterial
       +-BitmapMaterial
       |   +-ScriptedTexture
       |   +-ShadowBitmapMaterial
       |   +-Texture
       |       +-Cubemap
       |       +-FractalTexture
       |           +-FireTexture
       |           +-IceTexture
       |           +-WaterTexture
       |               +-FluidTexture
       |               +-WaveTexture
       |               +-WetTexture
       +-ConstantMaterial
       |   +-ConstantColor
       |   +-FadeColor
       +-ParticleMaterial
       +-ProjectorMaterial
       +-Shader
       +-TerrainMaterial
       +-VertexColor

Related Topics