Class Qkmaxware::Rendering::DiffuseColour

Class List > Qkmaxware > Rendering > DiffuseColour

Diffuse lit solid colour material

Inherits the following classes: Qkmaxware::Rendering::Material

Public Attributes

Type Name
double Albedo = = 1
Color Colour = = Color.White

Public Attributes inherited from Qkmaxware::Rendering::Material

See Qkmaxware::Rendering::Material

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

Public Functions

Type Name
DiffuseColour (Color colour)
Create a new diffuse lit solid colour material
virtual override Color Fragment (ShaderVariables variables)
Shader to apply to each face's surface

Public Functions inherited from Qkmaxware::Rendering::Material

See Qkmaxware::Rendering::Material

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 Albedo

double Qkmaxware.Rendering.DiffuseColour.Albedo;

variable Colour

Color Qkmaxware.Rendering.DiffuseColour.Colour;

Public Functions Documentation

function DiffuseColour

inline Qkmaxware::Rendering::DiffuseColour::DiffuseColour (
    Color colour
) 

Parameters:

  • colour material colour

function Fragment

inline virtual override Color Qkmaxware::Rendering::DiffuseColour::Fragment (
    ShaderVariables variables
) 

Parameters:

  • variables shading variables

Returns:

color of point on face

Implements Qkmaxware::Rendering::Material::Fragment


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