Nameless Engine
Loading...
Searching...
No Matches
ne::Material::MaterialShaderConstants Struct Reference

Public Attributes

glm::vec4 diffuseColor = glm::vec4(1.0F, 1.0F, 1.0F, 1.0F)
 
glm::vec4 specularColor = glm::vec4(1.0F, 1.0F, 1.0F, 1.0F)
 
float roughness = 0.0F
 

Detailed Description

Constants used by shaders.

Remarks
Should be exactly the same as constant buffer in shaders.

Member Data Documentation

◆ diffuseColor

glm::vec4 ne::Material::MaterialShaderConstants::diffuseColor = glm::vec4(1.0F, 1.0F, 1.0F, 1.0F)

Fill color. 4th component stores opacity when transparency is used.

◆ roughness

float ne::Material::MaterialShaderConstants::roughness = 0.0F

Defines how much specular light will be reflected.

◆ specularColor

glm::vec4 ne::Material::MaterialShaderConstants::specularColor = glm::vec4(1.0F, 1.0F, 1.0F, 1.0F)

Reflected color. 4th component is not used.


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