hdr texture

Started by matan45, November 25, 2017, 11:25:46

Previous topic - Next topic

matan45

there is a way to load hdr texture as cube for sky box?

spasi

Cube maps are usually stored and loaded as arrays of 6 images. The STBImage.stb_loadf* functions is probably what you're looking for.

matan45

yea but hdr is 1 image 360

KaiHH

You (likely) have an image which uses an "Equirectangular Projection". For a demo on how to use that with LWJGL 3, see:
- EnvironmentDemo.java
- environment.vs
- environment.fs


KaiHH