textures - Pass more than 4-channel data to OpenGL or Vulkan -
i pass following values texture fragment shader:
- base r
- base g
- base b
- material switch (metal/dielectric)
- normal x
- normal y
- normal z
- ior (only dielectric)
- roughness
that lot of stuff. looks require 3 different textures in opengl. questions:
- are there extensions opengl makes possible pass 1 texture?
- from have understood vulkan, gpu memory more accessible. mean can use generalized texture formats?
even in vulkan, can not have more 4 channels texture. however, both in opengl , vulkan, use 32 bits channels texture, , use packunorm( https://www.khronos.org/registry/opengl-refpages/gl4/html/packunorm.xhtml ). works integer texture , have perform filtering yourself
another way use ssbo ou tbo. not understand problem using 3 textures.
Comments
Post a Comment