Git Product home page Git Product logo

Comments (3)

markusfisch avatar markusfisch commented on June 14, 2024

Hm, yes, it should be possible to use non-square textures as well. As long as the dimensions are powers two.

Will try.

from shadereditor.

NeedsMoar avatar NeedsMoar commented on June 14, 2024

OpenGL ES 3.0 requires support for non-power-of-two textures, which was kind of important to their specification since no standard video resolution or screen size currently in use has any power of two dimensions. If you're stuck using ES 2.0 you'd be kind of hard pressed to find a power-of-two texture near the screen size with anything like the correct aspect ratio, but I suppose as long as it's larger you can just ignore the area outside screen edges and waste the memory, it's just that it might be a large amount of wasted area. :D

Using non-power-of-two appears to limit the texture to a single mipmap level (original size only) but I can't imagine why you'd need mipmaps if you're taking the time to use a full screen image in the first place. That should only matter much if you're texturing objects.

There's also a minimum max texture size of 2048x2048 requirement in ES 3.0 (in 2.0 this was usually the max texture size anyway but couldn't be relied on), which will cover lots of devices' screens but will only cover vertical on the higher resolution Samsung phones and such. I'd also expect that those phones would have used GPUs with higher maximums than the base level.

Apologies if this doesn't apply, I never bothered with OpenGL much because the way everything has to be done sat wrong with me for several reasons it's not worth going into here, and Windows driver support always lagged behind. I learned HLSL a long time ago to write shaders for the Milkdrop plugin in Winamp and GLSL is similar enough I figured I'd give this program a shot since it handles all the parts I wasn't going to touch. :D

from shadereditor.

Asmageddon avatar Asmageddon commented on June 14, 2024

@markusfisch I'd like to expand this feature request with one for higher resolution cubemaps, and importing them from single images instead of having to stitch 6 faces using mobile UI.

Only being able to go up to 256x256 per face when I've got a 2048x2048 cubemap... stings.

from shadereditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.