Minor HDRI skybox tweaks

This commit is contained in:
Robert Beckebans 2025-01-04 23:17:56 +01:00
parent 177212f98c
commit f9ca463d50
3 changed files with 5 additions and 2 deletions

View file

@ -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++ )

View file

@ -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 )
{

View file

@ -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;
}