![]() |
Lumino
|
#include <Material.hpp>
Inherits ln::Object.
Public Member Functions | |
void | setMainTexture (Texture *value) |
mainTexture | |
Texture * | mainTexture () const |
mainTexture | |
void | setMetallicRoughnessTexture (Texture *value) |
metallic-roughness テクスチャを設定します。 | |
Texture * | metallicRoughnessTexture () const |
metallic-roughness テクスチャを取得します。 | |
void | setOcclusionTexture (Texture *value) |
occlusion テクスチャを設定します。 | |
Texture * | occlusionTexture () 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 | |
Shader * | shader () 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< Shader > | m_shader |
Ref< Texture > | m_mainTexture |
Ref< Texture > | m_normalMap |
Ref< Texture > | m_metallicRoughnessTexture |
Ref< Texture > | m_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< BlendMode > | getBlendMode () const |
void | setCullingMode (Optional< CullMode > mode) |
Optional< CullMode > | getCullingMode () 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 | |
Metallic 値は B チャネル、Roughness 値は G チャネルからサンプリングされます。 https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#pbrmetallicroughnessmetallicroughnesstexture