How to fix glow item

Results 1 to 5 of 5
  1. #1
    Enthusiast manhaston is offline
    MemberRank
    Dec 2013 Join Date
    40Posts

    How to fix glow item

    How to fix glow item
    thank you


  2. #2
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: How to fix glow item

    what source

  3. #3
    Enthusiast manhaston is offline
    MemberRank
    Dec 2013 Join Date
    40Posts

    Re: How to fix glow item

    Allrightsource

  4. #4
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: How to fix glow item

    r3dObj.cpp

    Code:
    void MeshDeferredHighlightRenderable::DoDraw( Renderable* RThis, float distance, const r3dCamera& Cam )
    {
    	D3DPERF_BeginEvent( 0, L"MeshDeferredHighlightRenderable::Draw" );
    
    	MeshDeferredHighlightRenderable * This = static_cast<MeshDeferredHighlightRenderable*>( RThis );
    	r3dMesh* Mesh = This->Mesh;
    
    	r3dColor color( r3dColor::white );	
    
    	r3dRenderer->SetVertexShader( VS_FILLGBUFFER_EXTRUDE_ID );
    
    	float factor = r_highlight_thickness->GetFloat();
    
    	const float LINE_SATURATE = 2.0f;
    
    	if( distance < LINE_SATURATE )
    		factor *= distance / LINE_SATURATE;
    
    	float vsConst[ 4 ] = { factor / Mesh->unpackScale.x, factor / Mesh->unpackScale.y, factor / Mesh->unpackScale.z, 0 };
    
    	// float4x3 vExtrudeMatrix         : register( c17 );
    	D3D_V( r3dRenderer->pd3ddev->SetVertexShaderConstantF( 17, vsConst, 1 ) );
    
    	r3dPoint3D normal( 0, 1, 0 );
    
    	normal.Normalize();
    
    	SetFillGBufferConstantPixelShader( r3dColor::blue, 1.0f, normal, 0.0f, 0.0f, r_highlight_glow->GetFloat(), 0.f );
    
    	Mesh->DrawMeshSimple( 0 );
    
    	D3DPERF_EndEvent();
    }

  5. #5
    Enthusiast manhaston is offline
    MemberRank
    Dec 2013 Join Date
    40Posts

    Re: How to fix glow item

    Please example config



Advertisement