WorldViewProjection keyword in DierctX Document
float4x4 WorldViewProjectionMatrix: WorldViewProjection;
The keyword of WorldViewProjection is used in the FX Composer2?
But I cannot find the description of WorldViewProjection in DirectX SDK's document and FX Composer2's User Guide.
Could somebody know where is the WorldViewProjection and others keyword(after ":") in DirectX SDK Document?
[Edited by - akira32 on March 16, 2008 10:28:24 AM]
They're called Semantics. There are some predefined, and you can add your own ones like WVP, CameraPosition and the like, whatever you need.
FoxHunter2,thank you!
But I still cannot find the definition of WorldViewProjection in "Semantics (DirectX HLSL)".
I want to know the key words,as below:
WorldViewProjection
Wolrd
View Projection
WolrdInver
...... etc
But I still cannot find the definition of WorldViewProjection in "Semantics (DirectX HLSL)".
I want to know the key words,as below:
WorldViewProjection
Wolrd
View Projection
WolrdInver
...... etc
I think they're some custom semantics as defined by FxComposer (I also define them in my projects). In my opinion they speak for themselves:
WorldViewProjection - The World * View * Projection matrix
Wolrd - The World matrix
View Projection - The View * Projection matrix
WolrdInver - The Inverse(World) matrix
Via semantics you can set certain variables instead of their real name inside the shader. For example you could also do something like
float4x4 foo : WorldViewProjection
For example, if you don't know what the exact parameter name for the WorldViewProjection matrix is, but you know its semantic, you can always access is like that:
D3DXHANDLE wvpMatrixValue = ID3DXBaseEffect::GetParameterBySemantic(NULL, "WorldViewProjection");
This depends on the API and language used, of course
WorldViewProjection - The World * View * Projection matrix
Wolrd - The World matrix
View Projection - The View * Projection matrix
WolrdInver - The Inverse(World) matrix
Via semantics you can set certain variables instead of their real name inside the shader. For example you could also do something like
float4x4 foo : WorldViewProjection
For example, if you don't know what the exact parameter name for the WorldViewProjection matrix is, but you know its semantic, you can always access is like that:
D3DXHANDLE wvpMatrixValue = ID3DXBaseEffect::GetParameterBySemantic(NULL, "WorldViewProjection");
This depends on the API and language used, of course
I want to find the complete list of all custom semantics as defined by FxComposer. Could somebody have the list?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement