materialsystem/shaderapidx9/shaderapidx8.cpp
void CShaderAPIDx8::SetupSelectionModeVisualizationState()
{
	Dx9Device()->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE );

	D3DXMATRIX ident;
	D3DXMatrixIdentity( &ident );
	SetVertexShaderConstantInternal( VERTEX_SHADER_VIEWPROJ, ident, 4 );
	SetVertexShaderConstantInternal( VERTEX_SHADER_MODELVIEWPROJ, ident, 4 );
	SetVertexShaderConstantInternal( VERTEX_SHADER_MODEL, ident, 3 * NUM_MODEL_TRANSFORMS );
}
//-----------------------------------------------------------------------------
// Workaround hack for visualization of selection mode
//-----------------------------------------------------------------------------
Workaround hack for visualization of selection mode
Workaround hack for visualization of selection mode
void CShaderAPIDx8::SetupSelectionModeVisualizationState()
{
	Dx9Device()->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE );
	D3DXMATRIX ident;
	D3DXMatrixIdentity( &ident );
	SetVertexShaderConstantInternal( VERTEX_SHADER_VIEWPROJ, ident, 4 );
	SetVertexShaderConstantInternal( VERTEX_SHADER_MODELVIEWPROJ, ident, 4 );
	SetVertexShaderConstantInternal( VERTEX_SHADER_MODEL, ident, 3 * NUM_MODEL_TRANSFORMS );
}
void CShaderAPIDx8 :: SetupSelectionModeVisualizationState ( ) { Dx9Device ( ) -> SetRenderState ( D3DRS_CULLMODE , D3DCULL_NONE ) ; D3DXMATRIX ident ; D3DXMatrixIdentity ( & ident ) ; SetVertexShaderConstantInternal ( VERTEX_SHADER_VIEWPROJ , ident , 4 ) ; SetVertexShaderConstantInternal ( VERTEX_SHADER_MODELVIEWPROJ , ident , 4 ) ; SetVertexShaderConstantInternal ( VERTEX_SHADER_MODEL , ident , 3 * NUM_MODEL_TRANSFORMS ) ; }
Workaround hack for visualization of selection mode
Workaround hack for visualization of selection mode