Main   Class List   Namespace List   Wiki

CustomMaterial Class Reference
[Materials]

Material object which provides more control over surface properties. More...

Inheritance diagram for CustomMaterial:
Inheritance graph
[legend]

List of all members.

Public Attributes

Material fallback
 Alternate material for targeting lower end hardware.
bool forwardLit
 Flags this material as needing lights for forward rendering.
string shader
 Name of a GFXShaderData for this effect.
GFXStateBlockData stateBlock
 Name of a GFXStateBlockData for this effect.
string target
 String identifier of this material's target texture.
float version
 Specifies pixel shader version for hardware, such as 2.0, 3.0, etc.

Detailed Description

Material object which provides more control over surface properties.

CustomMaterials allow the user to specify their own shaders via the ShaderData datablock CustomMaterials are derived from Materials, so they can hold a lot of the same properties, but it is up to the user to code how these properties are used.

Example:
singleton CustomMaterial( WaterBasic )
{
   sampler["reflectMap"] = "$reflectbuff";
   sampler["refractBuff"] = "$backbuff";

   cubemap = NewLevelSkyCubemap;
   shader = WaterBasicShader;
   stateBlock = WaterBasicStateBlock;
   version = 2.0;
};
See also:
Material, GFXStateBlock, GFXShaderData

Member Data Documentation

Alternate material for targeting lower end hardware.

Flags this material as needing lights for forward rendering.

Name of a GFXShaderData for this effect.

Name of a GFXStateBlockData for this effect.

String identifier of this material's target texture.

Specifies pixel shader version for hardware, such as 2.0, 3.0, etc.



Copyright © GarageGames, LLC. All Rights Reserved.