Viewer:
- added hacky support for pre-shader graphics cards. Seems to work, but I'll not know for sure until I acutally test it on such a crippled hardware. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@174 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -1905,6 +1905,10 @@ int CDisplay::RenderNode (aiNode* piNode,const aiMatrix4x4& piMatrix,
|
||||
piEnd->SetVector( "vCameraPos",&apcVec[0]);
|
||||
|
||||
// setup the best technique
|
||||
if( g_sCaps.PixelShaderVersion < D3DPS_VERSION(2,0))
|
||||
{
|
||||
g_piDefaultEffect->SetTechnique( "DefaultFXSpecular_FF");
|
||||
} else
|
||||
if (g_sCaps.PixelShaderVersion < D3DPS_VERSION(3,0) || g_sOptions.bLowQuality)
|
||||
{
|
||||
if (g_sOptions.b3Lights)
|
||||
|
||||
Reference in New Issue
Block a user