thexa4 / source-pbr

Source Engine Physically Based Rendering implementation
https://wiki.empiresmod.com/PBR
Other
124 stars 26 forks source link

Cubemaps not blurring with Roughness #44

Open PixelSonic101 opened 1 year ago

PixelSonic101 commented 1 year ago

hlukt_testworld_playground0000 When generating a cubemap, it doesn't blur with the roughness.is there a way to fix this?

thexa4 commented 1 year ago

You have to start the game with the -forceallmips startup parameter for rough materials to look good. Can you try running with that parameter?

vaqxai commented 1 year ago

What's the reason we need this parametr? It kilka hacky

thexa4 commented 1 year ago

Roughness is implemented by sampling from the lower mip levels so those need to be in memory. By default the engine only loads the highest level so then your rough metal things look smooth.