Quantcast
Channel: How to map texture image onto a part of a sphere, or how to cut out (intersect) a rectangle of a sphere's surface? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Ilmari Heikkinen for How to map texture image onto a part of a...

The easiest way to scale down the projection is to tweak the UV coords in the fragment shader:// how large the projection should beuniform vec2 uScale;...// this is the color for pixels outside the...

View Article


How to map texture image onto a part of a sphere, or how to cut out...

I am working with WebGL using three.js and I have an image that I want to project onto the (inner) surface of a sphere. The problem I am facing is how to limit the extent of that mapping to a...

View Article
Browsing latest articles
Browse All 2 View Live