Class Qkmaxware::Rendering::DiffuseTexture

Class List > Qkmaxware > Rendering > DiffuseTexture

Diffuse lit textured material

Inherits the following classes: Qkmaxware::Rendering::TexturedMaterial

Public Attributes

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

Public Attributes inherited from Qkmaxware::Rendering::TexturedMaterial

See Qkmaxware::Rendering::TexturedMaterial

Type Name
Texture2D Texture

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
DiffuseTexture (Texture2D texture)
Create a diffuse shaded material with the given texture
virtual override Color Fragment (ShaderVariables variables)
Shader to apply to each face's surface

Public Functions inherited from Qkmaxware::Rendering::TexturedMaterial

See Qkmaxware::Rendering::TexturedMaterial

Type Name
TexturedMaterial (Texture2D texture)
Create a textured material with the given texture and sampling mode

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

Protected Functions inherited from Qkmaxware::Rendering::TexturedMaterial

See Qkmaxware::Rendering::TexturedMaterial

Type Name
Color ColourSample (Vec2 uv)
Sample a colour on the given texture at the provided UV coordinates

Public Attributes Documentation

variable Albedo

double Qkmaxware.Rendering.DiffuseTexture.Albedo;

variable Colour

Color Qkmaxware.Rendering.DiffuseTexture.Colour;

Public Functions Documentation

function DiffuseTexture

inline Qkmaxware::Rendering::DiffuseTexture::DiffuseTexture (
    Texture2D texture
) 

Parameters:

  • texture texture
  • wrap texture sampling mode

function Fragment

inline virtual override Color Qkmaxware::Rendering::DiffuseTexture::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