Timeline for Grainy texture from distance
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2018 at 0:04 | vote | accept | adrotter | ||
May 23, 2018 at 21:43 | answer | added | ErnieDingo | timeline score: 0 | |
May 23, 2018 at 21:38 | comment | added | ErnieDingo | Ok, I see your issue in your Texture Load, the Texture2D object is setting your mip level to 1.I believe this should be set to 0 to allow for maximum number of mip maps. You also have to call generate mipmaps call, but I will connfirm that. I will add my code as an answer for the correct loading of the texture. | |
May 23, 2018 at 20:37 | comment | added | adrotter | @DMGregory I actually did not write the code, I am adopting code from somebody else. I have tried multiple values for MipLevels, but I get parameter is incorrect exception with any value except 1. | |
May 23, 2018 at 20:36 | history | edited | adrotter | CC BY-SA 4.0 |
added samplerstate code
|
May 23, 2018 at 20:35 | comment | added | adrotter | @ErnieDingo i have added the sampler state code in the question, I believe I am using anisotropic filtering? | |
May 23, 2018 at 12:43 | comment | added | DMGregory♦ | What made you choose to use just one mip level? | |
May 23, 2018 at 2:44 | comment | added | ErnieDingo | Hi. Have you set your sampling? Trilinear it ansiotropic filtering needs to be set on your sampler in your shader | |
May 23, 2018 at 1:20 | history | edited | adrotter | CC BY-SA 4.0 |
added code
|
May 23, 2018 at 0:08 | history | asked | adrotter | CC BY-SA 4.0 |