Oxygen Engine
Modern C++ 3D Engine using OpenGL
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages Concepts
oe::scene::Material::TransmissiveProperties Struct Reference

Material properties related to physically-based transparency related effects. More...

#include <OxygenEngine/scene/material.h>

Public Attributes

float transmission = 0.0f
 Percentage of light transmitted through the surface between 0.0f (opaque) and 1.0f (transparent)
 
float thickness = 0.0f
 Thickness of the volume of the material between 0.0f (thin) and +Infinite (transparent)
 
float attenuation_distance = 0.0f
 
glm::vec3 attenuation_color = glm::vec3(1.0f)
 

Detailed Description

Material properties related to physically-based transparency related effects.

Mainly used for refractive materials

Member Data Documentation

◆ thickness

float oe::scene::Material::TransmissiveProperties::thickness = 0.0f

Thickness of the volume of the material between 0.0f (thin) and +Infinite (transparent)

Used for refractive materials to simulate refraction direction

◆ transmission

float oe::scene::Material::TransmissiveProperties::transmission = 0.0f

Percentage of light transmitted through the surface between 0.0f (opaque) and 1.0f (transparent)

Used for toggling physically-based transparency

Note
Do not confuse with surface color alpha component, that one can be thought of as describing whether the surface exists or not.

The documentation for this struct was generated from the following file: