8000 Implement PMREM Generator by panxinmiao · Pull Request #1000 · pygfx/pygfx · GitHub
[go: up one dir, main page]

Skip to content

Conversation

panxinmiao
Copy link
Contributor

Implement a PMREM(Prefiltered, Mipmapped Radiance Environment Map) generator.

Reference: https://learnopengl.com/PBR/IBL/Specular-IBL

Uh, I tested myself and it seems to be correct.

This is a map corresponding to different roughness levels, with prefiltered mipmap levels ranging from 0 to 5.

pm

As a comparison, this is normal mipmap level from 0 to 5.

mip

The original texture has a resolution of 2048x2048, so even at mip level 5, the mipmapped texture remains relatively sharp. In contrast, PMREM exhibits a more gradual reduction in blur intensity across mip levels, and this progression depends solely on the mip level rather than the original texture's dimensions.

  • Record here for now, and after completing the relevant work on texture format, update the IBL algorithm and use the PMREM generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0