Class Qkmaxware::Rendering::Material

Class List > Qkmaxware > Rendering > Material

Base class for all material rendering

Inherited by the following classes: Qkmaxware::Rendering::DiffuseColour, Qkmaxware::Rendering::TexturedMaterial, Qkmaxware::Rendering::UnlitColour, Qkmaxware::Rendering::Wireframe

Public Attributes

Type Name
bool TwoSided = = false
Two sided materials will not be subject to occlusion culling

Public Functions

Type Name
virtual Color Edge (ShaderVariables variables)
Shader to apply to each face's edges
virtual Color Fragment (ShaderVariables variables)
Shader to apply to each face's surface
virtual Color Vert (ShaderVariables variables)
Shader to apply to each vertex

Public Attributes Documentation

variable TwoSided

bool Qkmaxware.Rendering.Material.TwoSided;

Public Functions Documentation

function Edge

inline virtual Color Qkmaxware::Rendering::Material::Edge (
    ShaderVariables variables
) 

Parameters:

  • variables shading variables

Returns:

edge colour

function Fragment

inline virtual Color Qkmaxware::Rendering::Material::Fragment (
    ShaderVariables variables
) 

Parameters:

  • variables shading variables

Returns:

color of point on face

function Vert

inline virtual Color Qkmaxware::Rendering::Material::Vert (
    ShaderVariables variables
) 

Parameters:

  • variables shading variables

Returns:

vertex colour


The documentation for this class was generated from the following file Render/src/Material.cs