there is a way to load hdr texture as cube for sky box?
Cube maps are usually stored and loaded as arrays of 6 images. The STBImage.stb_loadf* functions is probably what you're looking for.
yea but hdr is 1 image 360
You (likely) have an image which uses an "Equirectangular Projection". For a demo on how to use that with LWJGL 3, see:
- EnvironmentDemo.java (https://github.com/LWJGL/lwjgl3-demos/blob/master/src/org/lwjgl/demo/opengl/textures/EnvironmentDemo.java)
- environment.vs (https://github.com/LWJGL/lwjgl3-demos/blob/master/res/org/lwjgl/demo/opengl/textures/environment.vs)
- environment.fs (https://github.com/LWJGL/lwjgl3-demos/blob/master/res/org/lwjgl/demo/opengl/textures/environment.fs)
how about this?
https://learnopengl.com/#!Advanced-Lighting/HDR
yes