|
Polyphase Game Engine
|
#include <MaterialLite.h>
Public Member Functions | |
| DECLARE_ASSET (MaterialLite, Material) | |
| MaterialLite () | |
| ~MaterialLite () | |
| virtual void | LoadStream (Stream &stream, Platform platform) override |
| virtual void | SaveStream (Stream &stream, Platform platform) override |
| virtual void | Create () override |
| virtual void | Destroy () override |
| virtual bool | Import (const std::string &path, ImportOptions *options) override |
| virtual void | GatherProperties (std::vector< Property > &outProps) override |
| virtual glm::vec4 | GetTypeColor () override |
| virtual const char * | GetTypeName () override |
| virtual bool | DrawCustomProperty (Property &prop) override |
| virtual bool | IsLite () const override |
| void | SaveLiteParams (Stream &stream) |
| void | LoadLiteParams (Stream &stream, uint32_t version) |
| virtual bool | HasNodeGraph () const override |
| virtual NodeGraph * | GetNodeGraph () override |
| virtual void | ApplyGraphValues (NodeGraph *graph) override |
| NodeGraph & | GetGraph () |
| const NodeGraph & | GetGraph () const |
| void | SetUseNodeGraph (bool use) |
| void | ApplyGraphToParams () |
| const MaterialLiteParams & | GetLiteParams () const |
| void | SetLiteParams (const MaterialLiteParams ¶ms) |
| void | SetTexture (uint32_t slot, Texture *texture) |
| Texture * | GetTexture (uint32_t slot) |
| ShadingModel | GetShadingModel () const |
| void | SetShadingModel (ShadingModel shadingModel) |
| virtual BlendMode | GetBlendMode () const override |
| void | SetBlendMode (BlendMode blendMode) |
| VertexColorMode | GetVertexColorMode () const |
| void | SetVertexColorMode (VertexColorMode mode) |
| glm::vec2 | GetUvOffset (int32_t uvIndex=0) const |
| void | SetUvOffset (glm::vec2 offset, int32_t uvIndex=0) |
| glm::vec2 | GetUvScale (int32_t uvIndex=0) const |
| void | SetUvScale (glm::vec2 scale, int32_t uvIndex=0) |
| glm::vec4 | GetColor () const |
| void | SetColor (const glm::vec4 &color) |
| glm::vec4 | GetFresnelColor () const |
| void | SetFresnelColor (const glm::vec4 &color) |
| float | GetEmission () const |
| void | SetEmission (float emission) |
| float | GetWrapLighting () const |
| void | SetWrapLighting (float wrapLighting) |
| float | GetFresnelPower () const |
| void | SetFresnelPower (float power) |
| float | GetSpecular () const |
| void | SetSpecular (float specular) |
| uint32_t | GetToonSteps () const |
| void | SetToonSteps (uint32_t steps) |
| float | GetOpacity () const |
| void | SetOpacity (float opacity) |
| virtual float | GetMaskCutoff () const override |
| void | SetMaskCutoff (float cutoff) |
| float | GetShininess () const |
| void | SetShininess (float shininess) |
| virtual int32_t | GetSortPriority () const override |
| void | SetSortPriority (int32_t priority) |
| virtual bool | IsDepthTestDisabled () const override |
| void | SetDepthTestDisabled (bool depthTest) |
| bool | IsFresnelEnabled () const |
| void | SetFresnelEnabled (bool enable) |
| virtual bool | ShouldApplyFog () const override |
| void | SetApplyFog (bool applyFog) |
| virtual CullMode | GetCullMode () const override |
| void | SetCullMode (CullMode cullMode) |
| uint32_t | GetUvMap (uint32_t textureSlot) |
| void | SetUvMap (uint32_t textureSlot, uint32_t uvMapIndex) |
| TevMode | GetTevMode (uint32_t textureSlot) |
| void | SetTevMode (uint32_t textureSlot, TevMode mode) |
Public Member Functions inherited from Material | |
| DECLARE_ASSET (Material, Asset) | |
| virtual bool | ShouldSnapshotForPie () const override |
| MaterialResource * | GetResource () |
| virtual bool | IsBase () const |
| virtual bool | IsInstance () const |
| MaterialLite * | AsLite () |
| std::vector< ShaderParameter > & | GetParameters () |
| void | SetScalarParameter (const std::string &name, float value) |
| void | SetVectorParameter (const std::string &name, glm::vec4 value) |
| void | SetTextureParameter (const std::string &name, Texture *value) |
| float | GetScalarParameter (const std::string &name) |
| glm::vec4 | GetVectorParameter (const std::string &name) |
| Texture * | GetTextureParameter (const std::string &name) |
| void | WriteShaderUniformParams (uint8_t *outData, uint32_t &outSize) |
Public Member Functions inherited from Asset | |
| DECLARE_FACTORY_MANAGER (Asset) | |
| DECLARE_FACTORY (Asset, Asset) | |
| DECLARE_OBJECT (Asset, Object) | |
| Asset () | |
| virtual | ~Asset () |
| virtual void | Copy (Asset *srcAsset) |
| const std::string & | GetName () const |
| bool | IsLoaded () const |
| bool | IsRefCounted () const |
| int32_t | GetRefCount () const |
| bool | IsEmbedded () const |
| void | SetEmbedded (bool embed) |
| bool | IsEngineAsset () const |
| void | SetEngineAsset (bool engineAsset) |
| void | SetName (const std::string &name) |
| void | IncrementRefCount () |
| void | DecrementRefCount () |
| void | LoadFile (const char *path, AsyncLoadRequest *request=nullptr) |
| void | LoadEmbedded (const EmbeddedFile *embeddedAsset, AsyncLoadRequest *request=nullptr) |
| void | SaveFile (const char *path, Platform platform) |
| virtual const char * | GetTypeImportExt () |
| bool | IsTransient () const |
| void | SetTransient (bool transient) |
| uint64_t | GetUuid () const |
| void | SetUuid (uint64_t uuid) |
| void | EnsureUuid () |
| void | WriteHeader (Stream &stream) |
Public Member Functions inherited from Object | |
| virtual | ~Object ()=default |
| virtual const char * | RuntimeName () const =0 |
| virtual const char * | RuntimeParentName () const =0 |
| virtual RuntimeId | InstanceRuntimeId () const =0 |
| virtual Object * | QueryInterface (RuntimeId id) const |
| virtual bool | Is (RuntimeId id) const |
| virtual bool | Is (const char *name) const |
| template<typename T > | |
| T * | As () const |
| virtual bool | Equals (const Object *rhs) const |
Static Public Member Functions | |
| static MaterialLite * | New (Material *src=nullptr) |
| static bool | HandlePropChange (Datum *datum, uint32_t index, const void *newValue) |
Static Public Member Functions inherited from Material | |
| static MaterialLite * | AsLite (Material *material) |
| static void | OverwriteShaderParameters (std::vector< ShaderParameter > &dst, const std::vector< ShaderParameter > &src) |
Static Public Member Functions inherited from Asset | |
| static AssetHeader | ReadHeader (Stream &stream) |
| static std::string | GetNameFromPath (const std::string &path) |
| static std::string | GetDirectoryFromPath (const std::string &path) |
| static const char * | GetNameFromTypeId (TypeId id) |
| static TypeId | GetTypeIdFromName (const char *name) |
Static Public Member Functions inherited from Object | |
| static const char * | ClassRuntimeName () |
Protected Attributes | |
| MaterialLiteParams | mLiteParams |
| NodeGraph | mGraph |
| bool | mUseNodeGraph = false |
Protected Attributes inherited from Material | |
| std::vector< ShaderParameter > | mParameters |
| MaterialResource | mResource |
Protected Attributes inherited from Asset | |
| uint32_t | mVersion = 0 |
| TypeId | mType = INVALID_TYPE_ID |
| uint64_t | mUuid = 0 |
| bool | mEmbedded = false |
| bool | mLoaded = false |
| bool | mEnableRefCount = true |
| bool | mEngineAsset = false |
| bool | mTransient = false |
| std::string | mName = "Asset" |
| int32_t | mRefCount = 0 |
| MaterialLite::MaterialLite | ( | ) |
| MaterialLite::~MaterialLite | ( | ) |
| void MaterialLite::ApplyGraphToParams | ( | ) |
|
overridevirtual |
Reimplemented from Material.
|
overridevirtual |
Reimplemented from Material.
| MaterialLite::DECLARE_ASSET | ( | MaterialLite | , |
| Material | |||
| ) |
|
overridevirtual |
Reimplemented from Material.
|
overridevirtual |
Reimplemented from Material.
| glm::vec4 MaterialLite::GetColor | ( | ) | const |
| float MaterialLite::GetEmission | ( | ) | const |
| glm::vec4 MaterialLite::GetFresnelColor | ( | ) | const |
| float MaterialLite::GetFresnelPower | ( | ) | const |
|
inline |
|
inline |
| const MaterialLiteParams & MaterialLite::GetLiteParams | ( | ) | const |
|
overridevirtual |
Reimplemented from Material.
|
inlineoverridevirtual |
Reimplemented from Material.
| float MaterialLite::GetOpacity | ( | ) | const |
| ShadingModel MaterialLite::GetShadingModel | ( | ) | const |
| float MaterialLite::GetShininess | ( | ) | const |
|
overridevirtual |
Reimplemented from Material.
| float MaterialLite::GetSpecular | ( | ) | const |
| TevMode MaterialLite::GetTevMode | ( | uint32_t | textureSlot | ) |
| Texture * MaterialLite::GetTexture | ( | uint32_t | slot | ) |
| uint32_t MaterialLite::GetToonSteps | ( | ) | const |
|
overridevirtual |
Reimplemented from Material.
|
overridevirtual |
Reimplemented from Material.
| uint32_t MaterialLite::GetUvMap | ( | uint32_t | textureSlot | ) |
| glm::vec2 MaterialLite::GetUvOffset | ( | int32_t | uvIndex = 0 | ) | const |
| glm::vec2 MaterialLite::GetUvScale | ( | int32_t | uvIndex = 0 | ) | const |
| VertexColorMode MaterialLite::GetVertexColorMode | ( | ) | const |
| float MaterialLite::GetWrapLighting | ( | ) | const |
|
static |
|
inlineoverridevirtual |
Reimplemented from Material.
|
overridevirtual |
Reimplemented from Material.
|
overridevirtual |
Reimplemented from Material.
| bool MaterialLite::IsFresnelEnabled | ( | ) | const |
|
overridevirtual |
Reimplemented from Material.
| void MaterialLite::LoadLiteParams | ( | Stream & | stream, |
| uint32_t | version | ||
| ) |
Reimplemented from Material.
|
static |
| void MaterialLite::SaveLiteParams | ( | Stream & | stream | ) |
Reimplemented from Material.
| void MaterialLite::SetApplyFog | ( | bool | applyFog | ) |
| void MaterialLite::SetBlendMode | ( | BlendMode | blendMode | ) |
| void MaterialLite::SetColor | ( | const glm::vec4 & | color | ) |
| void MaterialLite::SetCullMode | ( | CullMode | cullMode | ) |
| void MaterialLite::SetDepthTestDisabled | ( | bool | depthTest | ) |
| void MaterialLite::SetEmission | ( | float | emission | ) |
| void MaterialLite::SetFresnelColor | ( | const glm::vec4 & | color | ) |
| void MaterialLite::SetFresnelEnabled | ( | bool | enable | ) |
| void MaterialLite::SetFresnelPower | ( | float | power | ) |
| void MaterialLite::SetLiteParams | ( | const MaterialLiteParams & | params | ) |
| void MaterialLite::SetMaskCutoff | ( | float | cutoff | ) |
| void MaterialLite::SetOpacity | ( | float | opacity | ) |
| void MaterialLite::SetShadingModel | ( | ShadingModel | shadingModel | ) |
| void MaterialLite::SetShininess | ( | float | shininess | ) |
| void MaterialLite::SetSortPriority | ( | int32_t | priority | ) |
| void MaterialLite::SetSpecular | ( | float | specular | ) |
| void MaterialLite::SetTevMode | ( | uint32_t | textureSlot, |
| TevMode | mode | ||
| ) |
| void MaterialLite::SetTexture | ( | uint32_t | slot, |
| Texture * | texture | ||
| ) |
| void MaterialLite::SetToonSteps | ( | uint32_t | steps | ) |
| void MaterialLite::SetUseNodeGraph | ( | bool | use | ) |
| void MaterialLite::SetUvMap | ( | uint32_t | textureSlot, |
| uint32_t | uvMapIndex | ||
| ) |
| void MaterialLite::SetUvOffset | ( | glm::vec2 | offset, |
| int32_t | uvIndex = 0 |
||
| ) |
| void MaterialLite::SetUvScale | ( | glm::vec2 | scale, |
| int32_t | uvIndex = 0 |
||
| ) |
| void MaterialLite::SetVertexColorMode | ( | VertexColorMode | mode | ) |
| void MaterialLite::SetWrapLighting | ( | float | wrapLighting | ) |
|
overridevirtual |
Reimplemented from Material.
|
protected |
|
protected |
|
protected |