Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These are the types for OpenGL ES 3.0 with notes:

File SpecificationDefinitionNWN EE Notes
GL_COMPRESSED_R11_EAC11 bits for a single channel. Useful for single channel data where higher than 8 bit precision is needed. For example, heightmaps.
GL_COMPRESSED_SIGNED_R11_EACSigned version of GL_COMPRESSED_SIGNED_R11_EAC, useful when signed data is needed.
GL_COMPRESSED_RG11_EAC11 bits for two channels. Useful for two channel data where higher than 8 bit precision is needed. For example, normalised bump maps, the third component can be reconstructed from the other two components.
GL_COMPRESSED_SIGNED_RG11_EACSigned version of GL_COMPRESSED_RG11_EAC, useful when signed data is needed.
GL_COMPRESSED_RGB8_ETC28 bits for three channels. Useful for normal textures without alpha valuesThis is the standard non-alpha texture format NWNEE reads
GL_COMPRESSED_SRGB8_ETC2sRGB version of GL_COMPRESSED_RGB8_ETC2
GL_COMPRESSED_RGBA8_ETC2_EAC8 bits for four channels. Useful for normal textures with varying alpha values

This is the alpha texture format NWNEE reads

The game defaults to 0.5 alpha mean values for KTX textures.

GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EACsRGB version of GL_COMPRESSED_RGBA8_ETC2_EAC
GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC28 bits for three channels and a 1 bit alpha channel. Useful for normal textures with binary alpha valuesPunchthrough is not supported explicitly.
GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2sRGB version of GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2.Punchthrough is not supported explicitly.

KTX Issues

Due to the above notes the specular and roughness maps don't appear to load in the PC version correctly (being all black/incorrect) whatever combination of KTX ETC2 version is used at least from my testing.

...