Home > @gglib/fx-materials

fx-materials package

Classes

Class Description
AutoMaterial
LightParams
TerrainMaterial

Functions

Function Description
materialProgram(defs)

Interfaces

Interface Description
AutoMaterialParams
DefaultProgramDefs
FogDefs
GammaDefs
GbufferDefs
LightDefs
MtlAlphaDefs
MtlAmbientDefs Describes preprocessor definitions which control ambient light color contribution.
MtlDiffuseDefs Describes preprocessor definitions which control diffuse color contribution.
MtlEmissionDefs Describes preprocessor definitions which control emissive color contribution.
MtlMetallicRoughness Describes preprocessor definitions which control metallic roughness material.
MtlNormalDefs Describes preprocessor definitions which control normal mapping.
MtlOcclusionDefs Describes preprocessor definitions which control occlusion mapping.
MtlParallaxDefs Describes preprocessor definitions which control parallax mapping.
MtlSpecularDefs Describes preprocessor definitions which control specular color contribution.
MtlSplattingDefs
ShadeDefs
TerrainMaterialParams
VBillboardDefs
VColorDefs
VNormalDefs
VSkinningDefs
VTextureDefs

Variables

Variable Description
FXC_BASE_MAIN
FXC_BASE The base template
FXC_COMMON Adds common attributes uniforms varying and structs
FXC_GAMMA Enables gamma correction on a shader. See GammaDefs
FXC_MTL_ALPHA Adds alpha clip functionality to a shader. See MtlAlphaDefs
FXC_MTL_AMBIENT Contributes ambient lighting and mapping to the shader. See MtlAmbientDefs
FXC_MTL_DIFFUSE Contributes diffuse lighting and mapping to the shader. See MtlDiffuseDefs
FXC_MTL_EMISSION Contributes emission lighting and mapping to the shader. See MtlEmissionDefs
FXC_MTL_METALLIC_ROUGHNESS Adds Diffuse or Albedo texture / color to the shader. See MtlMetallicRoughness
FXC_MTL_NORMAL Contributes normal lighting and mapping to the shader. See MtlNormalDefs
FXC_MTL_OCCLUSION Adds Occlusion texture to the shader. See MtlOcclusionDefs
FXC_MTL_PARALLAX Contributes parallax mapping to the shader. See MtlParallaxDefs
FXC_MTL_SPECULAR Contributes specular color to the shader. See MtlSpecularDefs
FXC_MTL_SPLATTING
FXC_SCENE_FOG Adds fog functionality to a shader
FXC_SCENE_LIGHTS
FXC_SHADE_BLINN
FXC_SHADE_COOK_TORRANCE
FXC_SHADE_LAMBERT
FXC_SHADE_OPTIMIZED
FXC_SHADE_PBR
FXC_SHADE_PHONG
FXC_SHADE_SZIRMAY
FXC_SHADE
FXC_UTILS
FXC_V_BILLBOARD Adds billboard functionality to a shader
FXC_V_COLOR
FXC_V_NORMAL
FXC_V_SKINNING
FXC_V_TEXTURE

Type Aliases

Type Alias Description
ShadeFunction
ShadeFunctionBlinn
ShadeFunctionCookTorrance
ShadeFunctionLambert
ShadeFunctionNone
ShadeFunctionOptimized
ShadeFunctionPBR
ShadeFunctionPhong
ShadeFunctionSzirmay