Class Qkmaxware::Rendering::TexturedMaterial

Class List > Qkmaxware > Rendering > TexturedMaterial

Base class for a material with a single texture

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

Inherited by the following classes: Qkmaxware::Rendering::DiffuseTexture, Qkmaxware::Rendering::UnlitTexture

Public Attributes

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
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

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

Public Attributes Documentation

variable Texture

Texture2D Qkmaxware.Rendering.TexturedMaterial.Texture;

Public Functions Documentation

function TexturedMaterial

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

Parameters:

  • texture texture
  • wrap texturing sampling mode

Protected Functions Documentation

function ColourSample

inline Color Qkmaxware::Rendering::TexturedMaterial::ColourSample (
    Vec2 uv
) 

Parameters:

  • uv UV coordinates between 0 and 1

Returns:

texture colour


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