Lumino
ln::Material Class Reference

metallic-roughness テクスチャ

Metallic 値は B チャネル、Roughness 値は G チャネルからサンプリングされます。 https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#pbrmetallicroughnessmetallicroughnesstexture More...

#include <Material.hpp>

Inherits ln::Object.

Public Member Functions

void setMainTexture (Texture *value)
 mainTexture
 
TexturemainTexture () const
 mainTexture
 
void setMetallicRoughnessTexture (Texture *value)
 metallic-roughness テクスチャを設定します。
 
TexturemetallicRoughnessTexture () const
 metallic-roughness テクスチャを取得します。
 
void setOcclusionTexture (Texture *value)
 occlusion テクスチャを設定します。
 
TextureocclusionTexture () const
 occlusion テクスチャを取得します。
 
void setColor (const Color &value)
 setColor
 
void setRoughness (float value)
 setRoughness
 
void setMetallic (float value)
 setMetallic
 
void setEmissive (const Color &value)
 setEmissive
 
void setShadingModel (ShadingModel value)
 setShadingModel
 
ShadingModel shadingModel () const
 shadingModel
 
void setShader (Shader *shader)
 shader
 
Shadershader () const
 shader
 
void setInt (const StringRef &name, int value)
 整数値を設定します。
 
void setIntArray (const StringRef &name, const int *value, int count)
 整数値の配列を設定します。
 
void setFloat (const StringRef &name, float value)
 浮動小数点値を設定します。
 
void setFloatArray (const StringRef &name, const float *values, int length)
 浮動小数点値の配列を設定します。
 

RenderState

template<class T_ , typename... TArgs_>
ln::Ref< T_ > ln::makeObject (TArgs_ &&... args)
 
template<class T_ , typename... TArgs_>
ln::Ref< T_ > ln::makeObject2 (TArgs_ &&... args)
 
template<class T_ , typename... TArgs_>
void ln::placementNewObject (void *ptr, TArgs_ &&... args)
 
String m_name
 
ShadingModel m_shadingModel = ShadingModel::Default
 
LN_PROTECTED_INTERNAL_ACCESS __pad0__:LN_INTERNAL_ACCESS: public: void updateShaderVariables(detail::GraphicsCommandList* commandList
 
LN_PROTECTED_INTERNAL_ACCESS detail::ShaderSecondaryDescriptor * descriptor
 
Ref< Shaderm_shader
 
Ref< Texturem_mainTexture
 
Ref< Texturem_normalMap
 
Ref< Texturem_metallicRoughnessTexture
 
Ref< Texturem_occlusionTexture
 
std::vector< std::pair< String, std::shared_ptr< detail::ShaderParameterValue > > > m_values
 
std::vector< UniformBufferEntiry > m_uniformBufferData
 
LN_INTERNAL_ACCESS __pad1__: bool equalStatus(const Material* other) const { if (LN_REQUIRE(other)) return false
 
return m_shader
 
void setBlendMode (Optional< BlendMode > mode)
 
Optional< BlendModegetBlendMode () const
 
void setCullingMode (Optional< CullMode > mode)
 
Optional< CullModegetCullingMode () const
 
void setDepthTestEnabled (Optional< bool > enabled)
 
Optional< bool > isDepthTestEnabled () const
 
void setDepthWriteEnabled (Optional< bool > enabled)
 
Optional< bool > isDepthWriteEnabled () const
 
 Material ()
 
virtual ~Material ()
 
void init ()
 init
 
void init (Texture *mainTexture)
 
void init (Texture *mainTexture, ShadingModel shadingModel)
 
void init (Texture *mainTexture, const detail::PhongMaterialData &phongMaterialData)
 
detail::ShaderParameterValue * getValue (const ln::StringRef &name)
 
void serialize (Serializer2 &ar) override
 
 if (this==other) return true
 

Detailed Description

metallic-roughness テクスチャ

Metallic 値は B チャネル、Roughness 値は G チャネルからサンプリングされます。 https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#pbrmetallicroughnessmetallicroughnesstexture


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