C# 클래스 FBX.Scene.Materials.MaterialParameters

The Material Parameters class is a serializable class that encapsulates all the parameters needed by a material for a particular primitive. Some examples of material parameters are the Local2World transform matrix, colors or specular intensity values associated with a primitive. You must make the distinction between material variables that are the variables exposed by a shader to render a particular material, and the values of these variables which are contained by an instance of this MaterialParameters class.
파일 보기 프로젝트 열기: Patapom/GodComplex 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_ID int
m_Name string
m_Name2Parameter Parameter>.Dictionary
m_Owner Scene
m_Parameters List
m_ShaderURL string
m_TextureParameters List

공개 메소드들

메소드 설명
ClearParameters ( ) : void

Clears all registered parameters

CreateParameter ( string _Name, PARAMETER_TYPE _Type ) : Parameter

Creates a new parameter

Find ( string _ParameterName ) : Parameter

Finds a parameter by name

ToString ( ) : string

보호된 메소드들

메소드 설명
AddTextureParameter ( Texture2D _Texture ) : void

Adds a texture parameter (called by one of our TextureParameter which was assigned a texture)

RemoveTextureParameter ( Texture2D _Texture ) : void

Removes a texture parameter (called by one of our TextureParameter which was assigned a texture)

비공개 메소드들

메소드 설명
MaterialParameters ( Scene _Owner, System _Reader ) : System

Loads parameters from a stream

MaterialParameters ( Scene _Owner, int _ID, string _Name, string _ShaderURL ) : System
Save ( System _Writer ) : void

Saves parameters to a stream

메소드 상세

AddTextureParameter() 보호된 메소드

Adds a texture parameter (called by one of our TextureParameter which was assigned a texture)
protected AddTextureParameter ( Texture2D _Texture ) : void
_Texture Texture2D
리턴 void

ClearParameters() 공개 메소드

Clears all registered parameters
public ClearParameters ( ) : void
리턴 void

CreateParameter() 공개 메소드

Creates a new parameter
public CreateParameter ( string _Name, PARAMETER_TYPE _Type ) : Parameter
_Name string
_Type PARAMETER_TYPE
리턴 Parameter

Find() 공개 메소드

Finds a parameter by name
public Find ( string _ParameterName ) : Parameter
_ParameterName string
리턴 Parameter

RemoveTextureParameter() 보호된 메소드

Removes a texture parameter (called by one of our TextureParameter which was assigned a texture)
protected RemoveTextureParameter ( Texture2D _Texture ) : void
_Texture Texture2D
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

m_ID 보호되어 있는 프로퍼티

protected int m_ID
리턴 int

m_Name 보호되어 있는 프로퍼티

protected string m_Name
리턴 string

m_Name2Parameter 보호되어 있는 프로퍼티

protected Dictionary m_Name2Parameter
리턴 Parameter>.Dictionary

m_Owner 보호되어 있는 프로퍼티

protected Scene m_Owner
리턴 Scene

m_Parameters 보호되어 있는 프로퍼티

protected List m_Parameters
리턴 List

m_ShaderURL 보호되어 있는 프로퍼티

protected string m_ShaderURL
리턴 string

m_TextureParameters 보호되어 있는 프로퍼티

protected List m_TextureParameters
리턴 List