Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBR #1401

Merged
merged 72 commits into from
Sep 4, 2022
Merged

PBR #1401

merged 72 commits into from
Sep 4, 2022

Conversation

IMS212
Copy link
Member

@IMS212 IMS212 commented May 1, 2022

yeef
made this to draft
Almost all code is by @PepperCode1

IMS212 and others added 30 commits January 15, 2022 13:57
- Add iris.pbr.debug property to control dumping of PBR atlases
- Fix PBR sprite animation
- Fix PBR atlases not being cleared
Trying to get reserved normal and specular units
- Combine all texture tracking into a single TextureTracker
- Split atlas size calculation into AtlasInfoGatherer
- Tweak PBR code to match these changes
- Organize classes and packages
- PBR textures will automatically be bound if the texture implements
PBRTextureHolder.Provider
- Bound PBR textures are now reset to default if the last bound texture
isn't a PBRTextureHolder.Provider
- Remove PBR fields from ShadowRenderer
- Rename some classes
- Scale sprites if their width does not match the parent sprite's width
- Simplify PBR sprite loading
- Fix saving of non-zero mip level textures
- Rename TextureSaveUtil -> TextureSavingUtil
Conflicts:
	src/main/java/net/coderbot/iris/mixin/vertices/MixinBufferBuilder.java
	src/main/java/net/coderbot/iris/mixin/vertices/MixinVertexBuffer.java
	src/main/java/net/coderbot/iris/mixin/vertices/MixinVertexFormat.java
	src/main/java/net/coderbot/iris/samplers/IrisSamplers.java
	src/main/java/net/coderbot/iris/uniforms/CommonUniforms.java
- Reset atlas info on atlas texture load instead of old logic in
TextureTracker
Conflicts:
	src/main/java/net/coderbot/iris/Iris.java
	src/main/java/net/coderbot/iris/pipeline/DeferredWorldRenderingPipeline.java
	src/main/java/net/coderbot/iris/pipeline/FixedFunctionWorldRenderingPipeline.java
	src/main/java/net/coderbot/iris/pipeline/WorldRenderingPipeline.java
	src/main/java/net/coderbot/iris/samplers/IrisSamplers.java
	src/main/java/net/coderbot/iris/uniforms/CommonUniforms.java
Conflicts:
	src/main/java/net/coderbot/iris/Iris.java
	src/main/java/net/coderbot/iris/gl/shader/GlShader.java
	src/main/java/net/coderbot/iris/gl/shader/StandardMacros.java
	src/main/java/net/coderbot/iris/shaderpack/ShaderPack.java
Conflicts:
	src/main/java/net/coderbot/iris/Iris.java
	src/main/java/net/coderbot/iris/mixin/GlStateManagerAccessor.java
	src/main/java/net/coderbot/iris/mixin/MixinRenderTarget.java
	src/main/java/net/coderbot/iris/mixin/texture/MixinAbstractTexture.java
	src/main/java/net/coderbot/iris/mixin/texture/MixinGlStateManager.java
	src/main/java/net/coderbot/iris/pipeline/DeferredWorldRenderingPipeline.java
	src/main/java/net/coderbot/iris/pipeline/FixedFunctionWorldRenderingPipeline.java
	src/main/java/net/coderbot/iris/pipeline/ShadowRenderer.java
	src/main/java/net/coderbot/iris/pipeline/WorldRenderingPipeline.java
	src/main/java/net/coderbot/iris/samplers/IrisSamplers.java
	src/main/java/net/coderbot/iris/texture/TextureTracker.java
	src/main/java/net/coderbot/iris/texunits/TextureUnit.java
	src/main/resources/mixins.iris.json
	src/sodiumCompatibility/java/net/coderbot/iris/compat/sodium/impl/vertex_format/terrain_xhfp/XHFPModelVertexBufferWriterNio.java
	src/sodiumCompatibility/java/net/coderbot/iris/compat/sodium/impl/vertex_format/terrain_xhfp/XHFPModelVertexBufferWriterUnsafe.java
@IMS212 IMS212 added status: waiting on review This PR is waiting for code review and removed status: waiting on author The author must address comments before we can proceed labels Jul 1, 2022
@coderbot16
Copy link
Member

What is the status of this PR? There are a number of issue reports in the #pbr-issue-report channel on GitHub that don't appear to have any follow up or explicit resolution. I'm not fully comfortable reviewing this PR and moving forward with the process of getting it into a release until we can get a list of outstanding issues on the PR & confirmation that the other reported issues are fixed.

# Conflicts:
#	src/main/java/net/coderbot/iris/mixin/bettermipmaps/MixinTextureAtlasSprite.java
@IMS212 IMS212 mentioned this pull request Jul 15, 2022
1 task
@IMS212 IMS212 marked this pull request as ready for review August 25, 2022 00:12
Copy link
Member Author

@IMS212 IMS212 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, although blocking on #1599. Can't mark as approved since I made this.

PepperCode1 and others added 11 commits August 25, 2022 18:22
Allow broken paths
- Move PBR texture parameter setup from loaders to after binding
- Remove texture parameter locking
- Ensure PBRTextureManager#loadHolder does not change GL state
- Change PBRTextureConsumer argument contracts from Nullable to NotNull
- Move PBR texture change listeners from CustomTextureManager to
PBRTextureManager
- Use try-with-resources in AtlasPBRLoader
- Remove AtlasPBRLoader#uploadAtlas and add PBRAtlasTexture#tryUpload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed status: waiting on review This PR is waiting for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PBR textures are not supported
4 participants