mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-13 22:22:05 +00:00
Minor HDRI skybox tweaks
This commit is contained in:
parent
177212f98c
commit
f9ca463d50
3 changed files with 5 additions and 2 deletions
|
@ -1300,7 +1300,7 @@ bool R_LoadCubeImages( const char* imgName, cubeFiles_t extensions, byte* pics[6
|
|||
|
||||
if( pics )
|
||||
{
|
||||
cubeMapSize = 512;
|
||||
cubeMapSize = 1024;
|
||||
*outSize = cubeMapSize;
|
||||
|
||||
for( int i = 0; i < 6; i++ )
|
||||
|
|
|
@ -5800,6 +5800,7 @@ void idRenderBackend::DrawViewInternal( const viewDef_t* _viewDef, const int ste
|
|||
//-------------------------------------------------
|
||||
// resolve the screen for SSR
|
||||
//-------------------------------------------------
|
||||
if( is3D && r_useSSR.GetBool() )
|
||||
{
|
||||
if( R_GetMSAASamples() > 1 )
|
||||
{
|
||||
|
|
|
@ -58,5 +58,7 @@ void main( VS_IN vertex, out VS_OUT result )
|
|||
|
||||
result.texcoord0 = vertex.position.xyz - rpLocalViewOrigin.xyz;
|
||||
|
||||
result.color = ( swizzleColor( vertex.color ) * rpVertexColorModulate ) + rpVertexColorAdd;
|
||||
// RB: pass rpColor as intensity scaling factor for HDRI skies because the vertex color logic isn't used on skyboxes afaik
|
||||
//result.color = ( swizzleColor( vertex.color ) * rpVertexColorModulate ) + rpVertexColorAdd;
|
||||
result.color = rpColor;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue