Set material npot to true for quadPanelEl for better quality when layer disabled#5706
Set material npot to true for quadPanelEl for better quality when layer disabled#5706dmarcos merged 1 commit intoaframevr:masterfrom
Conversation
…er is not enabled
|
The I haven't tested it myself, so I do take your word that there's a perceivable difference. My guess is that it's caused by the minFilter being set to Though I wouldn't recommend using it this way. At the very least it would be cleaner to directly set the |
|
Yes that's exactly the lines that improves the sharpness. I have those lines on a custom component that creates a sphere geometry and material for 360 image. |
|
Should we set minFilter instead? |
|
Except for repeat, offset, anisotropy, setting other texture properties is currently not exposed to the material component schema. |
|
WebGL 1 placed various restrictions on non-power-of-two (npot) textures. Including the wrapping and filtering modes that can be used with such textures. With WebGL 2 there are no restrictions for npot textures. I'd say we should start exposing the filtering methods on the material component. Indirectly setting it through the |
|
I’m good with exposing the new properties and deprecating npot |
|
Okay. Feel free to still merge this and we can work on that later. I don't plan to work on it right now. |
|
Thanks |
Description:
Set material npot (not power of two) to true for quadPanelEl for better quality when layer is disabled.
Changes proposed:
Tested on the https://aframe.io/aframe/examples/test/layer/ example
layer disabled, without npot

layer disabled, with npot: true (not necessary visible on the jpg here, but trust me it changes the quality)

with layer enabled
