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
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 | + | ; ESurfaceTypes SurfaceType : Type of surface, see [[Legacy:ESurfaceTypes|ESurfaceTypes]]. |
===Internal=== | ===Internal=== | ||
− | |||
− | |||
+ | [[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. | ||
− | |||
− | |||
− | |||
==Methods== | ==Methods== | ||
Line 33: | Line 30: | ||
+-[[Legacy:Combiner|Combiner]] | +-[[Legacy:Combiner|Combiner]] | ||
+-[[Legacy:Modifier|Modifier]] | +-[[Legacy:Modifier|Modifier]] | ||
− | | | + | | +-[[Legacy:ColorModifier|ColorModifier]] |
− | | | + | | +-[[Legacy:FinalBlend|FinalBlend]] |
− | | | + | | +-[[Legacy:MaterialSequence|MaterialSequence]] |
− | | | + | | +-[[Legacy:MaterialSwitch|MaterialSwitch]] |
− | | | + | | +-[[Legacy:OpacityModifier|OpacityModifier]] |
− | | | + | | +-[[Legacy:TexModifier|TexModifier]] |
− | | | + | | +-[[Legacy:TexCoordSource|TexCoordSource]] |
− | | | + | | +-[[Legacy:TexEnvMap|TexEnvMap]] |
− | | | + | | +-[[Legacy:TexMatrix|TexMatrix]] |
− | | | + | | +-[[Legacy:TexOscillator|TexOscillator]] |
− | | | + | | | +-[[Legacy:TexOscillatorTriggered|TexOscillatorTriggered]] |
− | | | + | | +-[[Legacy:TexPanner|TexPanner]] |
− | | | + | | | +-[[Legacy:TexPannerTriggered|TexPannerTriggered]] |
− | | | + | | +-[[Legacy:TexRotator|TexRotator]] |
− | | | + | | +-[[Legacy:TexScaler|TexScaler]] |
+-[[Legacy:RenderedMaterial|RenderedMaterial]] | +-[[Legacy:RenderedMaterial|RenderedMaterial]] | ||
− | + | +-[[Legacy:BitmapMaterial|BitmapMaterial]] | |
− | + | | +-[[Legacy:ScriptedTexture|ScriptedTexture]] | |
− | + | | +-[[Legacy:ShadowBitmapMaterial|ShadowBitmapMaterial]] | |
− | + | | +-[[Legacy:Texture|Texture]] | |
− | + | | +-[[Legacy:Cubemap|Cubemap]] | |
− | + | | +-[[Legacy:FractalTexture|FractalTexture]] | |
− | + | | +-[[Legacy:FireTexture|FireTexture]] | |
− | + | | +-[[Legacy:IceTexture|IceTexture]] | |
− | + | | +-[[Legacy:WaterTexture|WaterTexture]] | |
− | + | | +-[[Legacy:FluidTexture|FluidTexture]] | |
− | + | | +-[[Legacy:WaveTexture|WaveTexture]] | |
− | + | | +-[[Legacy:WetTexture|WetTexture]] | |
− | + | +-[[Legacy:ConstantMaterial|ConstantMaterial]] | |
− | + | | +-[[Legacy:ConstantColor|ConstantColor]] | |
− | + | | +-[[Legacy:FadeColor|FadeColor]] | |
− | + | +-[[Legacy:ParticleMaterial|ParticleMaterial]] | |
− | + | +-[[Legacy:ProjectorMaterial|ProjectorMaterial]] | |
− | + | +-[[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
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
- 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